mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
resolve merge conflicts of 5cc7bbdbb to ub-launcher3-dorval-polish
Test: I solemnly swear I tested this conflict resolution. Change-Id: If3359341d5269f2c908b3a8856b6f38ba69a05eb
This commit is contained in:
@@ -272,7 +272,6 @@ public class Launcher extends BaseActivity
|
||||
private Handler mHandler = new Handler();
|
||||
private boolean mIsResumeFromActionScreenOff;
|
||||
private boolean mHasFocus = false;
|
||||
private boolean mAttached = false;
|
||||
|
||||
private ObjectAnimator mScrimAnimator;
|
||||
|
||||
@@ -468,6 +467,9 @@ public class Launcher extends BaseActivity
|
||||
mLauncherCallbacks.onCreate(savedInstanceState);
|
||||
}
|
||||
|
||||
// Listen for broadcasts screen off
|
||||
registerReceiver(mReceiver, new IntentFilter(Intent.ACTION_SCREEN_OFF));
|
||||
|
||||
if (Themes.getAttrBoolean(this, R.attr.isWorkspaceDarkText)) {
|
||||
activateLightSystemBars(true, true, true);
|
||||
}
|
||||
@@ -1591,13 +1593,7 @@ public class Launcher extends BaseActivity
|
||||
public void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
|
||||
// Listen for broadcasts related to user-presence
|
||||
final IntentFilter filter = new IntentFilter();
|
||||
filter.addAction(Intent.ACTION_SCREEN_OFF);
|
||||
registerReceiver(mReceiver, filter);
|
||||
FirstFrameAnimatorHelper.initializeDrawListener(getWindow().getDecorView());
|
||||
mAttached = true;
|
||||
|
||||
if (mLauncherCallbacks != null) {
|
||||
mLauncherCallbacks.onAttachedToWindow();
|
||||
}
|
||||
@@ -1606,10 +1602,6 @@ public class Launcher extends BaseActivity
|
||||
@Override
|
||||
public void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
if (mAttached) {
|
||||
unregisterReceiver(mReceiver);
|
||||
mAttached = false;
|
||||
}
|
||||
|
||||
if (mLauncherCallbacks != null) {
|
||||
mLauncherCallbacks.onDetachedFromWindow();
|
||||
@@ -1846,6 +1838,7 @@ public class Launcher extends BaseActivity
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
|
||||
unregisterReceiver(mReceiver);
|
||||
mWorkspace.removeCallbacks(mBuildLayersRunnable);
|
||||
mWorkspace.removeFolderListeners();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user