Commit cd7108e7 authored by LuK1337's avatar LuK1337
Browse files

DeskClock: Setup data model before calling super.onStart()

* Otherwise onStart() in StopwatchFragment will be called
  when app still believes it's running in the background and
  thus will remove FLAG_KEEP_SCREEN_ON window flag.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/2258
Change-Id: I196051d0d03f479c7ee3d0f7735cf8e64b70d70d
parent c38683a9
......@@ -303,9 +303,9 @@ public class DeskClock extends BaseActivity
@Override
protected void onStart() {
super.onStart();
DataModel.getDataModel().addSilentSettingsListener(mSilentSettingChangeWatcher);
DataModel.getDataModel().setApplicationInForeground(true);
super.onStart();
}
@Override
......
Supports Markdown
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