1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-24 14:53:12 +01:00

Fire observable to update timestamps directly on resume (#2554) (#2555)

This commit is contained in:
UlrichKu 2022-05-27 18:43:10 +02:00 committed by GitHub
parent 9139e7bbf1
commit 2424dde9cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -471,7 +471,7 @@ class TimelineFragment :
val preferences = PreferenceManager.getDefaultSharedPreferences(requireContext())
val useAbsoluteTime = preferences.getBoolean(PrefKeys.ABSOLUTE_TIME_VIEW, false)
if (!useAbsoluteTime) {
Observable.interval(1, TimeUnit.MINUTES)
Observable.interval(0, 1, TimeUnit.MINUTES)
.observeOn(AndroidSchedulers.mainThread())
.autoDispose(this, Lifecycle.Event.ON_PAUSE)
.subscribe {