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:
parent
becb677176
commit
d2befa83d3
|
@ -1231,7 +1231,7 @@ public class NotificationsFragment extends SFragment implements
|
||||||
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());
|
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());
|
||||||
boolean useAbsoluteTime = preferences.getBoolean("absoluteTimeView", false);
|
boolean useAbsoluteTime = preferences.getBoolean("absoluteTimeView", false);
|
||||||
if (!useAbsoluteTime) {
|
if (!useAbsoluteTime) {
|
||||||
Observable.interval(1, TimeUnit.MINUTES)
|
Observable.interval(0, 1, TimeUnit.MINUTES)
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.to(autoDisposable(from(this, Lifecycle.Event.ON_PAUSE)))
|
.to(autoDisposable(from(this, Lifecycle.Event.ON_PAUSE)))
|
||||||
.subscribe(
|
.subscribe(
|
||||||
|
|
Loading…
Reference in New Issue