reset SkipDeleteConfirmation 5 mins after backgrounding
This commit is contained in:
parent
92eb5d09bc
commit
284a12666f
3 changed files with 5 additions and 3 deletions
|
@ -176,9 +176,10 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||
|
||||
override fun onStop() {
|
||||
super.onStop()
|
||||
if (config.temporarilyShowHidden) {
|
||||
if (config.temporarilyShowHidden || config.tempSkipDeleteConfirmation) {
|
||||
mTempShowHiddenHandler.postDelayed({
|
||||
config.temporarilyShowHidden = false
|
||||
config.tempSkipDeleteConfirmation = false
|
||||
}, SHOW_TEMP_HIDDEN_DURATION)
|
||||
} else {
|
||||
mTempShowHiddenHandler.removeCallbacksAndMessages(null)
|
||||
|
|
|
@ -162,9 +162,10 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
super.onStop()
|
||||
mSearchMenuItem?.collapseActionView()
|
||||
|
||||
if (config.temporarilyShowHidden) {
|
||||
if (config.temporarilyShowHidden || config.tempSkipDeleteConfirmation) {
|
||||
mTempShowHiddenHandler.postDelayed({
|
||||
config.temporarilyShowHidden = false
|
||||
config.tempSkipDeleteConfirmation = false
|
||||
}, SHOW_TEMP_HIDDEN_DURATION)
|
||||
} else {
|
||||
mTempShowHiddenHandler.removeCallbacksAndMessages(null)
|
||||
|
|
|
@ -64,7 +64,7 @@ const val SLIDESHOW_SCROLL_DURATION = 500L
|
|||
|
||||
const val NOMEDIA = ".nomedia"
|
||||
const val MAX_COLUMN_COUNT = 20
|
||||
const val SHOW_TEMP_HIDDEN_DURATION = 600000L
|
||||
const val SHOW_TEMP_HIDDEN_DURATION = 300000L
|
||||
const val CLICK_MAX_DURATION = 150
|
||||
const val DRAG_THRESHOLD = 8
|
||||
|
||||
|
|
Loading…
Reference in a new issue