mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-01-05 21:38:33 +01:00
dont do anything on Home press when we are home
This commit is contained in:
parent
84bc826988
commit
b57c8da986
@ -135,7 +135,8 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
|
||||
}
|
||||
|
||||
private fun goHome() {
|
||||
openPath(config.homeFolder)
|
||||
if (config.homeFolder != currentPath)
|
||||
openPath(config.homeFolder)
|
||||
}
|
||||
|
||||
private fun showSortingDialog() {
|
||||
|
@ -81,7 +81,7 @@ class ItemsFragment : android.support.v4.app.Fragment(), ItemsAdapter.ItemOperat
|
||||
|
||||
fragmentView.apply {
|
||||
activity?.runOnUiThread {
|
||||
items_swipe_refresh.isRefreshing = false
|
||||
items_swipe_refresh?.isRefreshing = false
|
||||
if (newItems.hashCode() == mItems.hashCode()) {
|
||||
return@runOnUiThread
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user