Allow bubble bar to show on phones if the flag is enabled
* Check for bubble bar on phone being enabled in most places
tiny taskbar was checking
* Forces taskbar to always be stashed when bubble bar is enabled
* There are a couple of visual issues with the flag enabled:
- extra space in overview
- the hotseat is a lil squished on home when bubbles are there
Flag: com.android.wm.shell.enable_bubble_bar_on_phones
Test: manual - enable bubble bar on phones observe that bubble bar
is enabled and kind of works
Bug: 394869612
Change-Id: I56d3045c78c6c31dcacf16744033b34c9aa5f6e0
This commit is contained in:
@@ -31,6 +31,7 @@ import static com.android.launcher3.testing.shared.ResourceUtils.pxFromDp;
|
||||
import static com.android.launcher3.testing.shared.ResourceUtils.roundPxValueFromFloat;
|
||||
import static com.android.wm.shell.Flags.enableBubbleBar;
|
||||
import static com.android.wm.shell.Flags.enableTinyTaskbar;
|
||||
import static com.android.wm.shell.Flags.enableBubbleBarOnPhones;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
@@ -420,7 +421,9 @@ public class DeviceProfile {
|
||||
isTablet = info.isTablet(windowBounds);
|
||||
isPhone = !isTablet;
|
||||
isTwoPanels = isTablet && isMultiDisplay;
|
||||
isTaskbarPresent = (isTablet || (enableTinyTaskbar() && isGestureMode))
|
||||
boolean taskbarOrBubbleBarOnPhones = enableTinyTaskbar()
|
||||
|| (enableBubbleBar() && enableBubbleBarOnPhones());
|
||||
isTaskbarPresent = (isTablet || (taskbarOrBubbleBarOnPhones && isGestureMode))
|
||||
&& wmProxy.isTaskbarDrawnInProcess();
|
||||
|
||||
// Some more constants.
|
||||
|
||||
Reference in New Issue
Block a user