Commit 4fdbf3bc authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

fix clear cache delay

parent 873b85cc
......@@ -47,7 +47,7 @@ class SettingsScreenController :
override fun clearCache(): Observable<Int> =
clearCacheButton.clicks()
.debounce ( 500, TimeUnit.MICROSECONDS )
.debounce ( 120, TimeUnit.MICROSECONDS )
.map { Timber.d("Clicked clear cache button"); 1 }
.observeOn(AndroidSchedulers.mainThread())
......
......@@ -101,7 +101,7 @@ class SettingsScreenPresenter @Inject constructor(
it.first / it.second.toFloat()
)
}
.delay(500,TimeUnit.MILLISECONDS)
.delay(600,TimeUnit.MILLISECONDS)
.startWith(SettingsScreenViewState.OnCacheDeleting(0f))
.doOnError { Timber.e(it) }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment