Loading packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java +3 −3 Original line number Diff line number Diff line Loading @@ -458,10 +458,10 @@ public class NavigationBar implements View.OnAttachStateChangeListener, lp.windowAnimations = 0; lp.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC; LayoutInflater layoutInflater = LayoutInflater.from(mContext); NavigationBarFrame frame = (NavigationBarFrame) layoutInflater.inflate( NavigationBarFrame frame = (NavigationBarFrame) LayoutInflater.from(mContext).inflate( R.layout.navigation_bar_window, null); View barView = layoutInflater.inflate(R.layout.navigation_bar, frame); View barView = LayoutInflater.from(frame.getContext()).inflate( R.layout.navigation_bar, frame); barView.addOnAttachStateChangeListener(this); if (DEBUG) Log.v(TAG, "addNavigationBar: about to add " + barView); Loading packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarView.java +10 −23 Original line number Diff line number Diff line Loading @@ -329,8 +329,7 @@ public class NavigationBarView extends FrameLayout implements mOverviewProxyService = Dependency.get(OverviewProxyService.class); mFloatingRotationButton = new FloatingRotationButton(context); // TODO(165014649): Temporarily disable onboarding // mRecentsOnboarding = new RecentsOnboarding(context, mOverviewProxyService); mRecentsOnboarding = new RecentsOnboarding(context, mOverviewProxyService); mRotationButtonController = new RotationButtonController(mLightContext, mLightIconColor, mDarkIconColor, isGesturalMode ? mFloatingRotationButton : rotateSuggestionButton, Loading Loading @@ -886,9 +885,7 @@ public class NavigationBarView extends FrameLayout implements mNavBarMode = mode; mBarTransitions.onNavigationModeChanged(mNavBarMode); mEdgeBackGestureHandler.onNavigationModeChanged(mNavBarMode); if (mRecentsOnboarding != null) { mRecentsOnboarding.onNavigationModeChanged(mNavBarMode); } if (isGesturalMode(mNavBarMode)) { mRegionSamplingHelper.start(mSamplingBounds); Loading @@ -904,10 +901,8 @@ public class NavigationBarView extends FrameLayout implements } void hideRecentsOnboarding() { if (mRecentsOnboarding != null) { mRecentsOnboarding.hide(true); } } @Override public void onFinishInflate() { Loading Loading @@ -954,10 +949,8 @@ public class NavigationBarView extends FrameLayout implements super.onLayout(changed, left, top, right, bottom); notifyActiveTouchRegions(); if (mRecentsOnboarding != null) { mRecentsOnboarding.setNavBarHeight(getMeasuredHeight()); } } /** * Notifies the overview service of the active touch regions. Loading Loading @@ -1118,9 +1111,7 @@ public class NavigationBarView extends FrameLayout implements boolean uiCarModeChanged = updateCarMode(); updateIcons(mTmpLastConfiguration); updateRecentsIcon(); if (mRecentsOnboarding != null) { mRecentsOnboarding.onConfigurationChanged(mConfiguration); } if (uiCarModeChanged || mTmpLastConfiguration.densityDpi != mConfiguration.densityDpi || mTmpLastConfiguration.getLayoutDirection() != mConfiguration.getLayoutDirection()) { // If car mode or density changes, we need to reset the icons. Loading Loading @@ -1210,14 +1201,12 @@ public class NavigationBarView extends FrameLayout implements } private void setUpSwipeUpOnboarding(boolean connectedToOverviewProxy) { if (mRecentsOnboarding != null) { if (connectedToOverviewProxy) { mRecentsOnboarding.onConnectedToLauncher(); } else { mRecentsOnboarding.onDisconnectedFromLauncher(); } } } public void dump(PrintWriter pw) { final Rect r = new Rect(); Loading Loading @@ -1261,9 +1250,7 @@ public class NavigationBarView extends FrameLayout implements mNavigationInflaterView.dump(pw); } mContextualButtonGroup.dump(pw); if (mRecentsOnboarding != null) { mRecentsOnboarding.dump(pw); } mRegionSamplingHelper.dump(pw); mEdgeBackGestureHandler.dump(pw); } Loading Loading
packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java +3 −3 Original line number Diff line number Diff line Loading @@ -458,10 +458,10 @@ public class NavigationBar implements View.OnAttachStateChangeListener, lp.windowAnimations = 0; lp.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC; LayoutInflater layoutInflater = LayoutInflater.from(mContext); NavigationBarFrame frame = (NavigationBarFrame) layoutInflater.inflate( NavigationBarFrame frame = (NavigationBarFrame) LayoutInflater.from(mContext).inflate( R.layout.navigation_bar_window, null); View barView = layoutInflater.inflate(R.layout.navigation_bar, frame); View barView = LayoutInflater.from(frame.getContext()).inflate( R.layout.navigation_bar, frame); barView.addOnAttachStateChangeListener(this); if (DEBUG) Log.v(TAG, "addNavigationBar: about to add " + barView); Loading
packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarView.java +10 −23 Original line number Diff line number Diff line Loading @@ -329,8 +329,7 @@ public class NavigationBarView extends FrameLayout implements mOverviewProxyService = Dependency.get(OverviewProxyService.class); mFloatingRotationButton = new FloatingRotationButton(context); // TODO(165014649): Temporarily disable onboarding // mRecentsOnboarding = new RecentsOnboarding(context, mOverviewProxyService); mRecentsOnboarding = new RecentsOnboarding(context, mOverviewProxyService); mRotationButtonController = new RotationButtonController(mLightContext, mLightIconColor, mDarkIconColor, isGesturalMode ? mFloatingRotationButton : rotateSuggestionButton, Loading Loading @@ -886,9 +885,7 @@ public class NavigationBarView extends FrameLayout implements mNavBarMode = mode; mBarTransitions.onNavigationModeChanged(mNavBarMode); mEdgeBackGestureHandler.onNavigationModeChanged(mNavBarMode); if (mRecentsOnboarding != null) { mRecentsOnboarding.onNavigationModeChanged(mNavBarMode); } if (isGesturalMode(mNavBarMode)) { mRegionSamplingHelper.start(mSamplingBounds); Loading @@ -904,10 +901,8 @@ public class NavigationBarView extends FrameLayout implements } void hideRecentsOnboarding() { if (mRecentsOnboarding != null) { mRecentsOnboarding.hide(true); } } @Override public void onFinishInflate() { Loading Loading @@ -954,10 +949,8 @@ public class NavigationBarView extends FrameLayout implements super.onLayout(changed, left, top, right, bottom); notifyActiveTouchRegions(); if (mRecentsOnboarding != null) { mRecentsOnboarding.setNavBarHeight(getMeasuredHeight()); } } /** * Notifies the overview service of the active touch regions. Loading Loading @@ -1118,9 +1111,7 @@ public class NavigationBarView extends FrameLayout implements boolean uiCarModeChanged = updateCarMode(); updateIcons(mTmpLastConfiguration); updateRecentsIcon(); if (mRecentsOnboarding != null) { mRecentsOnboarding.onConfigurationChanged(mConfiguration); } if (uiCarModeChanged || mTmpLastConfiguration.densityDpi != mConfiguration.densityDpi || mTmpLastConfiguration.getLayoutDirection() != mConfiguration.getLayoutDirection()) { // If car mode or density changes, we need to reset the icons. Loading Loading @@ -1210,14 +1201,12 @@ public class NavigationBarView extends FrameLayout implements } private void setUpSwipeUpOnboarding(boolean connectedToOverviewProxy) { if (mRecentsOnboarding != null) { if (connectedToOverviewProxy) { mRecentsOnboarding.onConnectedToLauncher(); } else { mRecentsOnboarding.onDisconnectedFromLauncher(); } } } public void dump(PrintWriter pw) { final Rect r = new Rect(); Loading Loading @@ -1261,9 +1250,7 @@ public class NavigationBarView extends FrameLayout implements mNavigationInflaterView.dump(pw); } mContextualButtonGroup.dump(pw); if (mRecentsOnboarding != null) { mRecentsOnboarding.dump(pw); } mRegionSamplingHelper.dump(pw); mEdgeBackGestureHandler.dump(pw); } Loading