Merge "Refactor all uses of DisplayController singleton INSTANCE" into main
This commit is contained in:
commit
fb683dff89
51 files changed
+403
-148
No files matched your search
@@ -425,7 +425,7 @@ public class TaskbarManager {
|
||||
*/
|
||||
public void onUserUnlocked() {
|
||||
mUserUnlocked = true;
|
||||
DisplayController.INSTANCE.get(mPrimaryWindowContext).addChangeListener(
|
||||
DisplayController.get(mPrimaryWindowContext).addChangeListener(
|
||||
mRecreationListener);
|
||||
recreateTaskbar();
|
||||
addTaskbarRootViewToWindow(getDefaultDisplayId());
|
||||
@@ -798,7 +798,7 @@ public class TaskbarManager {
|
||||
mTaskbarBroadcastReceiver.unregisterReceiverSafely(mPrimaryWindowContext);
|
||||
|
||||
if (mUserUnlocked) {
|
||||
DisplayController.INSTANCE.get(mPrimaryWindowContext).removeChangeListener(
|
||||
DisplayController.get(mPrimaryWindowContext).removeChangeListener(
|
||||
mRecreationListener);
|
||||
}
|
||||
SettingsCache.INSTANCE.get(mPrimaryWindowContext)
|
||||
|
||||
Reference in new issue
Block a user