2554 refresh timestamps on resume (#2562)

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

* Fire observable to update timestamps directly on resume (#2554)
This commit is contained in:
UlrichKu 2022-05-27 19:51:22 +02:00 committed by GitHub
parent becb677176
commit d2befa83d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1231,7 +1231,7 @@ public class NotificationsFragment extends SFragment implements
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());
boolean useAbsoluteTime = preferences.getBoolean("absoluteTimeView", false);
if (!useAbsoluteTime) {
Observable.interval(1, TimeUnit.MINUTES)
Observable.interval(0, 1, TimeUnit.MINUTES)
.observeOn(AndroidSchedulers.mainThread())
.to(autoDisposable(from(this, Lifecycle.Event.ON_PAUSE)))
.subscribe(