Skip to content

Commit b57c8da

Browse files
committed
dont do anything on Home press when we are home
1 parent 84bc826 commit b57c8da

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
135135
}
136136

137137
private fun goHome() {
138-
openPath(config.homeFolder)
138+
if (config.homeFolder != currentPath)
139+
openPath(config.homeFolder)
139140
}
140141

141142
private fun showSortingDialog() {

app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class ItemsFragment : android.support.v4.app.Fragment(), ItemsAdapter.ItemOperat
8181

8282
fragmentView.apply {
8383
activity?.runOnUiThread {
84-
items_swipe_refresh.isRefreshing = false
84+
items_swipe_refresh?.isRefreshing = false
8585
if (newItems.hashCode() == mItems.hashCode()) {
8686
return@runOnUiThread
8787
}

0 commit comments

Comments
 (0)