Merge branch 'heads/android-14.0.0_r18' into 14-dev
This commit is contained in:
1 parent
32700b0100
commit
cc8f9828ab
756 files changed
+23785
-12235
No files matched your search
@@ -88,6 +88,7 @@ import com.android.launcher3.taskbar.TaskbarNavButtonController.TaskbarButton;
|
||||
import com.android.launcher3.taskbar.navbutton.NavButtonLayoutFactory;
|
||||
import com.android.launcher3.taskbar.navbutton.NavButtonLayoutFactory.NavButtonLayoutter;
|
||||
import com.android.launcher3.util.DimensionUtils;
|
||||
import com.android.launcher3.util.DisplayController;
|
||||
import com.android.launcher3.util.MultiPropertyFactory.MultiProperty;
|
||||
import com.android.launcher3.util.MultiValueAlpha;
|
||||
import com.android.launcher3.util.TouchController;
|
||||
@@ -126,10 +127,11 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
private static final int FLAG_SLIDE_IN_VIEW_VISIBLE = 1 << 14;
|
||||
|
||||
/**
|
||||
* Flags where a UI could be over Taskbar surfaces, so the color override should be disabled.
|
||||
* Flags where a UI could be over Taskbar surfaces, so the color override should
|
||||
* be disabled.
|
||||
*/
|
||||
private static final int FLAGS_ON_BACKGROUND_COLOR_OVERRIDE_DISABLED =
|
||||
FLAG_NOTIFICATION_SHADE_EXPANDED | FLAG_VOICE_INTERACTION_WINDOW_SHOWING;
|
||||
private static final int FLAGS_ON_BACKGROUND_COLOR_OVERRIDE_DISABLED = FLAG_NOTIFICATION_SHADE_EXPANDED
|
||||
| FLAG_VOICE_INTERACTION_WINDOW_SHOWING;
|
||||
|
||||
private static final String NAV_BUTTONS_SEPARATE_WINDOW_TITLE = "Taskbar Nav Buttons";
|
||||
|
||||
@@ -148,9 +150,12 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
// Used for IME+A11Y buttons
|
||||
private final ViewGroup mEndContextualContainer;
|
||||
private final ViewGroup mStartContextualContainer;
|
||||
private final int mLightIconColor;
|
||||
private final int mDarkIconColor;
|
||||
/** Color to use for navigation bar buttons, if they are on on a Taskbar surface background. */
|
||||
private final int mLightIconColorOnHome;
|
||||
private final int mDarkIconColorOnHome;
|
||||
/**
|
||||
* Color to use for navigation bar buttons, if they are on on a Taskbar surface
|
||||
* background.
|
||||
*/
|
||||
private final int mOnBackgroundIconColor;
|
||||
|
||||
private final AnimatedFloat mTaskbarNavButtonTranslationY = new AnimatedFloat(
|
||||
@@ -160,7 +165,8 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
private final AnimatedFloat mTaskbarNavButtonTranslationYForIme = new AnimatedFloat(
|
||||
this::updateNavButtonTranslationY);
|
||||
private float mLastSetNavButtonTranslationY;
|
||||
// Used for System UI state updates that should translate the nav button for in-app display.
|
||||
// Used for System UI state updates that should translate the nav button for
|
||||
// in-app display.
|
||||
private final AnimatedFloat mNavButtonInAppDisplayProgressForSysui = new AnimatedFloat(
|
||||
this::updateNavButtonInAppDisplayProgressForSysui);
|
||||
/** Expected nav button dark intensity communicated via the framework. */
|
||||
@@ -193,10 +199,10 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
// Variables for moving nav buttons to a separate window above IME
|
||||
private boolean mAreNavButtonsInSeparateWindow = false;
|
||||
private BaseDragLayer<TaskbarActivityContext> mSeparateWindowParent; // Initialized in init.
|
||||
private final ViewTreeObserver.OnComputeInternalInsetsListener mSeparateWindowInsetsComputer =
|
||||
this::onComputeInsetsForSeparateWindow;
|
||||
private final ViewTreeObserver.OnComputeInternalInsetsListener mSeparateWindowInsetsComputer = this::onComputeInsetsForSeparateWindow;
|
||||
private final RecentsHitboxExtender mHitboxExtender = new RecentsHitboxExtender();
|
||||
private ImageView mRecentsButton;
|
||||
private DisplayController mDisplayController;
|
||||
|
||||
public NavbarButtonsViewController(TaskbarActivityContext context, FrameLayout navButtonsView) {
|
||||
mContext = context;
|
||||
@@ -205,9 +211,11 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
mEndContextualContainer = mNavButtonsView.findViewById(R.id.end_contextual_buttons);
|
||||
mStartContextualContainer = mNavButtonsView.findViewById(R.id.start_contextual_buttons);
|
||||
|
||||
mLightIconColor = context.getColor(R.color.taskbar_nav_icon_light_color);
|
||||
mDarkIconColor = context.getColor(R.color.taskbar_nav_icon_dark_color);
|
||||
mOnBackgroundIconColor = Utilities.isDarkTheme(context) ? mLightIconColor : mDarkIconColor;
|
||||
mLightIconColorOnHome = context.getColor(R.color.taskbar_nav_icon_light_color_on_home);
|
||||
mDarkIconColorOnHome = context.getColor(R.color.taskbar_nav_icon_dark_color_on_home);
|
||||
mOnBackgroundIconColor = Utilities.isDarkTheme(context)
|
||||
? context.getColor(R.color.taskbar_nav_icon_light_color)
|
||||
: context.getColor(R.color.taskbar_nav_icon_dark_color);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -224,7 +232,11 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
TaskbarManager.isPhoneMode(deviceProfile));
|
||||
mNavButtonsView.getLayoutParams().height = p.y;
|
||||
|
||||
mIsImeRenderingNavButtons = app.lawnchair.LawnchairApp.isAtleastT() ? InputMethodService.canImeRenderGesturalNavButtons() && mContext.imeDrawsImeNavBar() : mContext.imeDrawsImeNavBar();
|
||||
mIsImeRenderingNavButtons = app.lawnchair.LawnchairApp.isAtleastT()
|
||||
? InputMethodService.canImeRenderGesturalNavButtons() && mContext.imeDrawsImeNavBar()
|
||||
: mContext.imeDrawsImeNavBar();
|
||||
mDisplayController = DisplayController.INSTANCE.get(mContext);
|
||||
|
||||
if (!mIsImeRenderingNavButtons) {
|
||||
// IME switcher
|
||||
View imeSwitcherButton = addButton(R.drawable.ic_ime_switcher, BUTTON_IME_SWITCH,
|
||||
@@ -249,12 +261,14 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
mPropertyHolders.add(new StatePropertyHolder(mControllers.taskbarDragLayerController
|
||||
.getKeyguardBgTaskbar(), flags -> (flags & FLAG_KEYGUARD_VISIBLE) == 0));
|
||||
|
||||
// Force nav buttons (specifically back button) to be visible during setup wizard.
|
||||
// Force nav buttons (specifically back button) to be visible during setup
|
||||
// wizard.
|
||||
boolean isInSetup = !mContext.isUserSetupComplete();
|
||||
boolean isInKidsMode = mContext.isNavBarKidsModeActive();
|
||||
boolean alwaysShowButtons = isThreeButtonNav || isInSetup;
|
||||
|
||||
// Make sure to remove nav bar buttons translation when any of the following occur:
|
||||
// Make sure to remove nav bar buttons translation when any of the following
|
||||
// occur:
|
||||
// - Notification shade is expanded
|
||||
// - IME is showing (add separate translation for IME)
|
||||
// - VoiceInteractionWindow (assistant) is showing
|
||||
@@ -266,7 +280,8 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
// Center nav buttons in new height for IME.
|
||||
float transForIme = (mContext.getDeviceProfile().taskbarHeight
|
||||
- mControllers.taskbarInsetsController.getTaskbarHeightForIme()) / 2f;
|
||||
// For gesture nav, nav buttons only show for IME anyway so keep them translated down.
|
||||
// For gesture nav, nav buttons only show for IME anyway so keep them translated
|
||||
// down.
|
||||
float defaultButtonTransY = alwaysShowButtons ? 0 : transForIme;
|
||||
mPropertyHolders.add(new StatePropertyHolder(mTaskbarNavButtonTranslationYForIme,
|
||||
flags -> (flags & FLAG_IME_VISIBLE) != 0 && !isInKidsMode, AnimatedFloat.VALUE,
|
||||
@@ -381,8 +396,8 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
mPropertyHolders.add(
|
||||
new StatePropertyHolder(mHomeButtonAlpha.get(
|
||||
ALPHA_INDEX_KEYGUARD_OR_DISABLE),
|
||||
flags -> (flags & FLAG_KEYGUARD_VISIBLE) == 0 &&
|
||||
(flags & FLAG_DISABLE_HOME) == 0));
|
||||
flags -> (flags & FLAG_KEYGUARD_VISIBLE) == 0 &&
|
||||
(flags & FLAG_DISABLE_HOME) == 0));
|
||||
|
||||
// Recents button
|
||||
mRecentsButton = addButton(R.drawable.ic_sysbar_recent, BUTTON_RECENTS,
|
||||
@@ -423,8 +438,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
| SYSUI_STATE_QUICK_SETTINGS_EXPANDED;
|
||||
boolean isNotificationShadeExpanded = (sysUiStateFlags & shadeExpandedFlags) != 0;
|
||||
boolean isScreenPinningActive = (sysUiStateFlags & SYSUI_STATE_SCREEN_PINNING) != 0;
|
||||
boolean isVoiceInteractionWindowShowing =
|
||||
(sysUiStateFlags & SYSUI_STATE_VOICE_INTERACTION_WINDOW_SHOWING) != 0;
|
||||
boolean isVoiceInteractionWindowShowing = (sysUiStateFlags & SYSUI_STATE_VOICE_INTERACTION_WINDOW_SHOWING) != 0;
|
||||
|
||||
// TODO(b/202218289) we're getting IME as not visible on lockscreen from system
|
||||
updateStateForFlag(FLAG_IME_VISIBLE, isImeVisible);
|
||||
@@ -439,8 +453,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
|
||||
if (mA11yButton != null) {
|
||||
// Only used in 3 button
|
||||
boolean a11yLongClickable =
|
||||
(sysUiStateFlags & SYSUI_STATE_A11Y_BUTTON_LONG_CLICKABLE) != 0;
|
||||
boolean a11yLongClickable = (sysUiStateFlags & SYSUI_STATE_A11Y_BUTTON_LONG_CLICKABLE) != 0;
|
||||
mA11yButton.setLongClickable(a11yLongClickable);
|
||||
updateButtonLayoutSpacing();
|
||||
}
|
||||
@@ -474,7 +487,8 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
|
||||
/**
|
||||
* Slightly misnamed, but should be called when keyguard OR AOD is showing.
|
||||
* We consider keyguardVisible when it's showing bouncer OR is occlucded by another app
|
||||
* We consider keyguardVisible when it's showing bouncer OR is occlucded by
|
||||
* another app
|
||||
*/
|
||||
public void setKeyguardVisible(boolean isKeyguardVisible, boolean isKeyguardOccluded) {
|
||||
updateStateForFlag(FLAG_KEYGUARD_VISIBLE, isKeyguardVisible || isKeyguardOccluded);
|
||||
@@ -565,7 +579,10 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
return mTaskbarNavButtonTranslationY;
|
||||
}
|
||||
|
||||
/** Use to set the translationY for the all nav+contextual buttons when in Launcher */
|
||||
/**
|
||||
* Use to set the translationY for the all nav+contextual buttons when in
|
||||
* Launcher
|
||||
*/
|
||||
public AnimatedFloat getTaskbarNavButtonTranslationYForInAppDisplay() {
|
||||
return mTaskbarNavButtonTranslationYForInAppDisplay;
|
||||
}
|
||||
@@ -575,7 +592,9 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
return mTaskbarNavButtonDarkIntensity;
|
||||
}
|
||||
|
||||
/** Use to override the nav button color with {@link #mOnBackgroundIconColor}. */
|
||||
/**
|
||||
* Use to override the nav button color with {@link #mOnBackgroundIconColor}.
|
||||
*/
|
||||
public AnimatedFloat getOnTaskbarBackgroundNavButtonColorOverride() {
|
||||
return mOnTaskbarBackgroundNavButtonColorOverride;
|
||||
}
|
||||
@@ -616,10 +635,10 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
final float normalTranslationY = mTaskbarNavButtonTranslationY.value;
|
||||
final float imeAdjustmentTranslationY = mTaskbarNavButtonTranslationYForIme.value;
|
||||
TaskbarUIController uiController = mControllers.uiController;
|
||||
final float inAppDisplayAdjustmentTranslationY =
|
||||
(uiController instanceof LauncherTaskbarUIController
|
||||
&& ((LauncherTaskbarUIController) uiController).shouldUseInAppLayout())
|
||||
? mTaskbarNavButtonTranslationYForInAppDisplay.value : 0;
|
||||
final float inAppDisplayAdjustmentTranslationY = (uiController instanceof LauncherTaskbarUIController
|
||||
&& ((LauncherTaskbarUIController) uiController).shouldUseInAppLayout())
|
||||
? mTaskbarNavButtonTranslationYForInAppDisplay.value
|
||||
: 0;
|
||||
|
||||
mLastSetNavButtonTranslationY = normalTranslationY
|
||||
+ imeAdjustmentTranslationY
|
||||
@@ -629,18 +648,21 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
|
||||
private void updateNavButtonColor() {
|
||||
final ArgbEvaluator argbEvaluator = ArgbEvaluator.getInstance();
|
||||
final int sysUiNavButtonIconColor = (int) argbEvaluator.evaluate(
|
||||
final int sysUiNavButtonIconColorOnHome = (int) argbEvaluator.evaluate(
|
||||
mTaskbarNavButtonDarkIntensity.value,
|
||||
mLightIconColor,
|
||||
mDarkIconColor);
|
||||
// Override the color from framework if nav buttons are over an opaque Taskbar surface.
|
||||
mLightIconColorOnHome,
|
||||
mDarkIconColorOnHome);
|
||||
|
||||
// Override the color from framework if nav buttons are over an opaque Taskbar
|
||||
// surface.
|
||||
final int iconColor = (int) argbEvaluator.evaluate(
|
||||
mOnBackgroundNavButtonColorOverrideMultiplier.value
|
||||
* Math.max(
|
||||
mOnTaskbarBackgroundNavButtonColorOverride.value,
|
||||
mSlideInViewVisibleNavButtonColorOverride.value),
|
||||
sysUiNavButtonIconColor,
|
||||
sysUiNavButtonIconColorOnHome,
|
||||
mOnBackgroundIconColor);
|
||||
|
||||
for (ImageView button : mAllButtons) {
|
||||
button.setImageTintList(ColorStateList.valueOf(iconColor));
|
||||
}
|
||||
@@ -660,8 +682,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
buttonView.setContentDescription(parent.getContext().getString(
|
||||
navButtonController.getButtonContentDescription(buttonType)));
|
||||
buttonView.setOnClickListener(view -> navButtonController.onButtonClick(buttonType, view));
|
||||
buttonView.setOnLongClickListener(view ->
|
||||
navButtonController.onButtonLongClick(buttonType, view));
|
||||
buttonView.setOnLongClickListener(view -> navButtonController.onButtonLongClick(buttonType, view));
|
||||
return buttonView;
|
||||
}
|
||||
|
||||
@@ -691,8 +712,8 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
private void handleSetupUi() {
|
||||
// Since setup wizard only has back button enabled, it looks strange to be
|
||||
// end-aligned, so start-align instead.
|
||||
FrameLayout.LayoutParams navButtonsLayoutParams = (FrameLayout.LayoutParams)
|
||||
mNavButtonContainer.getLayoutParams();
|
||||
FrameLayout.LayoutParams navButtonsLayoutParams = (FrameLayout.LayoutParams) mNavButtonContainer
|
||||
.getLayoutParams();
|
||||
Resources resources = mContext.getResources();
|
||||
DeviceProfile deviceProfile = mContext.getDeviceProfile();
|
||||
int setupMargin = resources.getDimensionPixelSize(R.dimen.taskbar_contextual_button_margin);
|
||||
@@ -703,13 +724,13 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
(resources.getDimensionPixelSize(R.dimen.taskbar_nav_buttons_size) / 2);
|
||||
navButtonsLayoutParams.setMarginEnd(0);
|
||||
navButtonsLayoutParams.gravity = Gravity.START;
|
||||
mNavButtonsView.getLayoutParams().height =
|
||||
mControllers.taskbarActivityContext.getSetupWindowHeight();
|
||||
mNavButtonsView.getLayoutParams().height = mControllers.taskbarActivityContext.getSetupWindowHeight();
|
||||
mNavButtonContainer.setLayoutParams(navButtonsLayoutParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the correct spacing to 3 button nav container depending on if device is in kids mode,
|
||||
* Adds the correct spacing to 3 button nav container depending on if device is
|
||||
* in kids mode,
|
||||
* setup wizard, or normal 3 button nav.
|
||||
*/
|
||||
private void updateButtonLayoutSpacing() {
|
||||
@@ -722,15 +743,11 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
boolean isInKidsMode = mContext.isNavBarKidsModeActive();
|
||||
|
||||
if (TaskbarManager.FLAG_HIDE_NAVBAR_WINDOW) {
|
||||
if (!isThreeButtonNav) {
|
||||
return;
|
||||
}
|
||||
|
||||
NavButtonLayoutter navButtonLayoutter =
|
||||
NavButtonLayoutFactory.Companion.getUiLayoutter(
|
||||
dp, mNavButtonsView, res, isInKidsMode, isInSetup, isThreeButtonNav,
|
||||
TaskbarManager.isPhoneMode(dp));
|
||||
NavButtonLayoutter navButtonLayoutter = NavButtonLayoutFactory.Companion.getUiLayoutter(
|
||||
dp, mNavButtonsView, res, isInKidsMode, isInSetup, isThreeButtonNav,
|
||||
TaskbarManager.isPhoneMode(dp), mDisplayController.getInfo().rotation);
|
||||
navButtonLayoutter.layoutButtons(dp, isContextualButtonShowing());
|
||||
updateNavButtonColor();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -772,8 +789,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
// Home button layout
|
||||
LinearLayout.LayoutParams homeLayoutparams = new LinearLayout.LayoutParams(
|
||||
buttonWidth,
|
||||
buttonHeight
|
||||
);
|
||||
buttonHeight);
|
||||
int homeButtonLeftMargin = res.getDimensionPixelSize(
|
||||
R.dimen.taskbar_home_button_left_margin_kids);
|
||||
homeLayoutparams.setMargins(homeButtonLeftMargin, 0, 0, 0);
|
||||
@@ -782,8 +798,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
// Back button layout
|
||||
LinearLayout.LayoutParams backLayoutParams = new LinearLayout.LayoutParams(
|
||||
buttonWidth,
|
||||
buttonHeight
|
||||
);
|
||||
buttonHeight);
|
||||
int backButtonLeftMargin = res.getDimensionPixelSize(
|
||||
R.dimen.taskbar_back_button_left_margin_kids);
|
||||
backLayoutParams.setMargins(backButtonLeftMargin, 0, 0, 0);
|
||||
@@ -797,8 +812,8 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
mBackButton.setBackground(buttonBackground);
|
||||
|
||||
// Update alignment within taskbar
|
||||
FrameLayout.LayoutParams navButtonsLayoutParams = (FrameLayout.LayoutParams)
|
||||
mNavButtonContainer.getLayoutParams();
|
||||
FrameLayout.LayoutParams navButtonsLayoutParams = (FrameLayout.LayoutParams) mNavButtonContainer
|
||||
.getLayoutParams();
|
||||
navButtonsLayoutParams.setMarginStart(
|
||||
navButtonsLayoutParams.getMarginEnd() / 2);
|
||||
navButtonsLayoutParams.setMarginEnd(navButtonsLayoutParams.getMarginStart());
|
||||
@@ -815,15 +830,15 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
|
||||
// Setup normal 3 button
|
||||
// Add spacing after the end of the last nav button
|
||||
FrameLayout.LayoutParams navButtonParams =
|
||||
(FrameLayout.LayoutParams) mNavButtonContainer.getLayoutParams();
|
||||
FrameLayout.LayoutParams navButtonParams = (FrameLayout.LayoutParams) mNavButtonContainer.getLayoutParams();
|
||||
navButtonParams.gravity = Gravity.END;
|
||||
navButtonParams.width = FrameLayout.LayoutParams.WRAP_CONTENT;
|
||||
navButtonParams.height = MATCH_PARENT;
|
||||
|
||||
int navMarginEnd = (int) res.getDimension(dp.inv.inlineNavButtonsEndSpacing);
|
||||
int contextualWidth = mEndContextualContainer.getWidth();
|
||||
// If contextual buttons are showing, we check if the end margin is enough for the
|
||||
// If contextual buttons are showing, we check if the end margin is enough for
|
||||
// the
|
||||
// contextual button to be showing - if not, move the nav buttons over a smidge
|
||||
if (isContextualButtonShowing() && navMarginEnd < contextualWidth) {
|
||||
// Additional spacing, eat up half of space between last icon and nav button
|
||||
@@ -836,8 +851,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
int spaceInBetween = res.getDimensionPixelSize(R.dimen.taskbar_button_space_inbetween);
|
||||
for (int i = 0; i < mNavButtonContainer.getChildCount(); i++) {
|
||||
View navButton = mNavButtonContainer.getChildAt(i);
|
||||
LinearLayout.LayoutParams buttonLayoutParams =
|
||||
(LinearLayout.LayoutParams) navButton.getLayoutParams();
|
||||
LinearLayout.LayoutParams buttonLayoutParams = (LinearLayout.LayoutParams) navButton.getLayoutParams();
|
||||
buttonLayoutParams.weight = 0;
|
||||
if (i == 0) {
|
||||
buttonLayoutParams.setMarginEnd(spaceInBetween / 2);
|
||||
@@ -867,7 +881,8 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
}
|
||||
|
||||
/**
|
||||
* Moves mNavButtonsView from TaskbarDragLayer to a placeholder BaseDragLayer on a new window.
|
||||
* Moves mNavButtonsView from TaskbarDragLayer to a placeholder BaseDragLayer on
|
||||
* a new window.
|
||||
*/
|
||||
public void moveNavButtonsToNewWindow() {
|
||||
if (mAreNavButtonsInSeparateWindow) {
|
||||
@@ -875,7 +890,8 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
}
|
||||
|
||||
if (mIsImeRenderingNavButtons) {
|
||||
// IME is rendering the nav buttons, so we don't need to create a new layer for them.
|
||||
// IME is rendering the nav buttons, so we don't need to create a new layer for
|
||||
// them.
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -904,7 +920,8 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
}
|
||||
|
||||
/**
|
||||
* Moves mNavButtonsView from its temporary window and reattaches it to TaskbarDragLayer.
|
||||
* Moves mNavButtonsView from its temporary window and reattaches it to
|
||||
* TaskbarDragLayer.
|
||||
*/
|
||||
public void moveNavButtonsBackToTaskbarWindow() {
|
||||
if (!mAreNavButtonsInSeparateWindow) {
|
||||
@@ -923,7 +940,8 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
}
|
||||
|
||||
/**
|
||||
* Called whenever a new ui controller is set, and should update anything that depends on the
|
||||
* Called whenever a new ui controller is set, and should update anything that
|
||||
* depends on the
|
||||
* ui controller.
|
||||
*/
|
||||
public void onUiControllerChanged() {
|
||||
@@ -936,8 +954,6 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
pw.println(prefix + "NavbarButtonsViewController:");
|
||||
|
||||
pw.println(prefix + "\tmState=" + getStateString(mState));
|
||||
pw.println(prefix + "\tmLightIconColor=" + Integer.toHexString(mLightIconColor));
|
||||
pw.println(prefix + "\tmDarkIconColor=" + Integer.toHexString(mDarkIconColor));
|
||||
pw.println(prefix + "\tmFloatingRotationButtonBounds=" + mFloatingRotationButtonBounds);
|
||||
pw.println(prefix + "\tmSysuiStateFlags=" + QuickStepContract.getSystemUiStateString(
|
||||
mSysuiStateFlags));
|
||||
@@ -948,6 +964,14 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
+ mTaskbarNavButtonTranslationYForInAppDisplay.value);
|
||||
pw.println(prefix + "\t\tmTaskbarNavButtonTranslationYForIme="
|
||||
+ mTaskbarNavButtonTranslationYForIme.value);
|
||||
pw.println(prefix + "\t\tmTaskbarNavButtonDarkIntensity="
|
||||
+ mTaskbarNavButtonDarkIntensity.value);
|
||||
pw.println(prefix + "\t\tmSlideInViewVisibleNavButtonColorOverride="
|
||||
+ mSlideInViewVisibleNavButtonColorOverride.value);
|
||||
pw.println(prefix + "\t\tmOnTaskbarBackgroundNavButtonColorOverride="
|
||||
+ mOnTaskbarBackgroundNavButtonColorOverride.value);
|
||||
pw.println(prefix + "\t\tmOnBackgroundNavButtonColorOverrideMultiplier="
|
||||
+ mOnBackgroundNavButtonColorOverrideMultiplier.value);
|
||||
}
|
||||
|
||||
private static String getStateString(int flags) {
|
||||
|
||||
Reference in new issue
Block a user