mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-01-22 06:45:30 +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() {
|
private fun goHome() {
|
||||||
openPath(config.homeFolder)
|
if (config.homeFolder != currentPath)
|
||||||
|
openPath(config.homeFolder)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun showSortingDialog() {
|
private fun showSortingDialog() {
|
||||||
|
@ -81,7 +81,7 @@ class ItemsFragment : android.support.v4.app.Fragment(), ItemsAdapter.ItemOperat
|
|||||||
|
|
||||||
fragmentView.apply {
|
fragmentView.apply {
|
||||||
activity?.runOnUiThread {
|
activity?.runOnUiThread {
|
||||||
items_swipe_refresh.isRefreshing = false
|
items_swipe_refresh?.isRefreshing = false
|
||||||
if (newItems.hashCode() == mItems.hashCode()) {
|
if (newItems.hashCode() == mItems.hashCode()) {
|
||||||
return@runOnUiThread
|
return@runOnUiThread
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user