Loading packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java +10 −1 Original line number Diff line number Diff line Loading @@ -410,6 +410,12 @@ public class NavigationBar implements View.OnAttachStateChangeListener, new Handler(Looper.getMainLooper())) { @Override public void onChange(boolean selfChange, Uri uri) { // TODO(b/198002034): Content observers currently can still be called back after being // unregistered, and in this case we can ignore the change if the nav bar has been // destroyed already if (mNavigationBarView == null) { return; } updateAssistantEntrypoints(); } }; Loading Loading @@ -651,7 +657,7 @@ public class NavigationBar implements View.OnAttachStateChangeListener, if (mIsOnDefaultDisplay) { final RotationButtonController rotationButtonController = mNavigationBarView.getRotationButtonController(); rotationButtonController.addRotationCallback(mRotationWatcher); rotationButtonController.setRotationCallback(mRotationWatcher); // Reset user rotation pref to match that of the WindowManager if starting in locked // mode. This will automatically happen when switching from auto-rotate to locked mode. Loading Loading @@ -690,6 +696,9 @@ public class NavigationBar implements View.OnAttachStateChangeListener, @Override public void onViewDetachedFromWindow(View v) { final RotationButtonController rotationButtonController = mNavigationBarView.getRotationButtonController(); rotationButtonController.setRotationCallback(null); mNavigationBarView.getBarTransitions().destroy(); mNavigationBarView.getLightTransitionsController().destroy(mContext); mOverviewProxyService.removeCallback(mOverviewProxyListener); Loading packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarView.java +1 −1 Original line number Diff line number Diff line Loading @@ -274,7 +274,7 @@ public class NavigationBarView extends FrameLayout implements }; private final Consumer<Boolean> mRotationButtonListener = (visible) -> { if (visible) { if (visible && mAutoHideController != null) { // If the button will actually become visible and the navbar is about to hide, // tell the statusbar to keep it around for longer mAutoHideController.touchAutoHide(); Loading packages/SystemUI/src/com/android/systemui/navigationbar/RotationButtonController.java +1 −1 Original line number Diff line number Diff line Loading @@ -180,7 +180,7 @@ public class RotationButtonController { TaskStackChangeListeners.getInstance().unregisterTaskStackListener(mTaskStackListener); } void addRotationCallback(Consumer<Integer> watcher) { void setRotationCallback(Consumer<Integer> watcher) { mRotWatcherListener = watcher; } Loading Loading
packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java +10 −1 Original line number Diff line number Diff line Loading @@ -410,6 +410,12 @@ public class NavigationBar implements View.OnAttachStateChangeListener, new Handler(Looper.getMainLooper())) { @Override public void onChange(boolean selfChange, Uri uri) { // TODO(b/198002034): Content observers currently can still be called back after being // unregistered, and in this case we can ignore the change if the nav bar has been // destroyed already if (mNavigationBarView == null) { return; } updateAssistantEntrypoints(); } }; Loading Loading @@ -651,7 +657,7 @@ public class NavigationBar implements View.OnAttachStateChangeListener, if (mIsOnDefaultDisplay) { final RotationButtonController rotationButtonController = mNavigationBarView.getRotationButtonController(); rotationButtonController.addRotationCallback(mRotationWatcher); rotationButtonController.setRotationCallback(mRotationWatcher); // Reset user rotation pref to match that of the WindowManager if starting in locked // mode. This will automatically happen when switching from auto-rotate to locked mode. Loading Loading @@ -690,6 +696,9 @@ public class NavigationBar implements View.OnAttachStateChangeListener, @Override public void onViewDetachedFromWindow(View v) { final RotationButtonController rotationButtonController = mNavigationBarView.getRotationButtonController(); rotationButtonController.setRotationCallback(null); mNavigationBarView.getBarTransitions().destroy(); mNavigationBarView.getLightTransitionsController().destroy(mContext); mOverviewProxyService.removeCallback(mOverviewProxyListener); Loading
packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarView.java +1 −1 Original line number Diff line number Diff line Loading @@ -274,7 +274,7 @@ public class NavigationBarView extends FrameLayout implements }; private final Consumer<Boolean> mRotationButtonListener = (visible) -> { if (visible) { if (visible && mAutoHideController != null) { // If the button will actually become visible and the navbar is about to hide, // tell the statusbar to keep it around for longer mAutoHideController.touchAutoHide(); Loading
packages/SystemUI/src/com/android/systemui/navigationbar/RotationButtonController.java +1 −1 Original line number Diff line number Diff line Loading @@ -180,7 +180,7 @@ public class RotationButtonController { TaskStackChangeListeners.getInstance().unregisterTaskStackListener(mTaskStackListener); } void addRotationCallback(Consumer<Integer> watcher) { void setRotationCallback(Consumer<Integer> watcher) { mRotWatcherListener = watcher; } Loading