dont do anything on Home press when we are home
This commit is contained in:
parent
84bc826988
commit
b57c8da986
2 changed files with 3 additions and 2 deletions
|
@ -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 a new issue