Add transient taskbar sizing for twoPanel devices.

Bug: 259712417
Test: on two panel device, on tablet device
Change-Id: Iae273b6bbfb254288c234aa5882f39eb0b6a88b1
This commit is contained in:
Jon Miranda committed 2022-12-01 16:28:29 -08:00
1 parent b0ed7dae63
commit a4aaf1aced
5 files changed
+18 -6

No files matched your search

+3 -1
View File
@@ -319,7 +319,9 @@ public class DeviceProfile {
if (isTaskbarPresent) {
if (DisplayController.isTransientTaskbar(context)) {
taskbarSize = res.getDimensionPixelSize(R.dimen.transient_taskbar_size);
taskbarSize = res.getDimensionPixelSize(isTwoPanels
? R.dimen.transient_taskbar_two_panels_size
: R.dimen.transient_taskbar_size);
stashedTaskbarSize =
res.getDimensionPixelSize(R.dimen.transient_taskbar_stashed_size);
transientTaskbarMargin =