Report lower insets for SUW if expressive theme enabled
This change addresses the desire to lower the footer for SUW content if the expressive theme is enabled in SUW. This would remove the extra gap at the bottom of the screen. Fix: 409897759 Test: Enable expressive theme and relaunch SUW. Check that the bottom buttons are closer to the bottom edge of the screen. Flag: EXEMPT bugfix Change-Id: I7a4961549ec888e57c89a564028843f1e8c0000b
This commit is contained in:
1 parent
589dfc9672
commit
7adea11bfa
3 files changed
+51
-8
No files matched your search
@@ -167,6 +167,9 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
FLAG_NOTIFICATION_SHADE_EXPANDED | FLAG_VOICE_INTERACTION_WINDOW_SHOWING;
|
||||
|
||||
private static final String NAV_BUTTONS_SEPARATE_WINDOW_TITLE = "Taskbar Nav Buttons";
|
||||
private static final String SUW_THEME_SYSTEM_PROPERTY = "setupwizard.theme";
|
||||
private static final String GLIF_EXPRESSIVE_THEME = "glif_expressive";
|
||||
private static final String GLIF_EXPRESSIVE_LIGHT_THEME = "glif_expressive_light";
|
||||
|
||||
private static final double SQUARE_ASPECT_RATIO_BOTTOM_BOUND = 0.95;
|
||||
private static final double SQUARE_ASPECT_RATIO_UPPER_BOUND = 1.05;
|
||||
@@ -278,9 +281,9 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
if (mContext.isPhoneMode()) {
|
||||
mTaskbarTransitions = new TaskbarTransitions(mContext, mNavButtonsView);
|
||||
}
|
||||
String SUWTheme = SystemProperties.get("setupwizard.theme", "");
|
||||
mIsExpressiveThemeEnabled = SUWTheme.equals("glif_expressive")
|
||||
|| SUWTheme.equals("glif_expressive_light");
|
||||
String SUWTheme = SystemProperties.get(SUW_THEME_SYSTEM_PROPERTY, "");
|
||||
mIsExpressiveThemeEnabled = SUWTheme.equals(GLIF_EXPRESSIVE_THEME)
|
||||
|| SUWTheme.equals(GLIF_EXPRESSIVE_LIGHT_THEME);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -527,6 +530,20 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
navButtonController.onButtonLongClick(BUTTON_SPACE, view));
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to determine whether the Navigation Bar is viewable in Setup Wizard
|
||||
*
|
||||
* @return {@code true} if the device is in Setup Wizard, the expressive theme is enabled,
|
||||
* and Simple View is NOT enabled
|
||||
*/
|
||||
boolean isNavbarHiddenInSUW() {
|
||||
if (mContext == null) {
|
||||
return false;
|
||||
}
|
||||
return !mContext.isUserSetupComplete() && mIsExpressiveThemeEnabled
|
||||
&& !mContext.isSimpleViewEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to determine whether to show the home button in lockscreen
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user