Moving taskbar variables in DeviceProfile to their own class
Bug: 419264653 Flag: EXEMPT refactor Test: DeviceProfileDumpTest Test: All Image tests Change-Id: I05ec9e15ef02096326596af4835adb706473a736
This commit is contained in:
1 parent
4f08a7a40e
commit
8244449a9f
31 files changed
+239
-131
No files matched your search
@@ -472,7 +472,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
deviceProfile.hotseatQsbWidth = originDeviceProfile.hotseatQsbWidth;
|
||||
|
||||
// Update icon size
|
||||
deviceProfile.iconSizePx = deviceProfile.taskbarIconSize;
|
||||
deviceProfile.iconSizePx = deviceProfile.getTaskbarProfile().getIconSize();
|
||||
deviceProfile.updateIconSize(1f, this);
|
||||
};
|
||||
mDeviceProfile = originDeviceProfile.toBuilder(this)
|
||||
@@ -816,7 +816,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
|
||||
/** Returns whether taskbar should start align. */
|
||||
public boolean shouldStartAlignTaskbar() {
|
||||
return isThreeButtonNav() && mDeviceProfile.startAlignTaskbar;
|
||||
return isThreeButtonNav() && mDeviceProfile.getTaskbarProfile().isStartAlignTaskbar();
|
||||
}
|
||||
|
||||
public boolean isGestureNav() {
|
||||
@@ -1382,15 +1382,15 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
DeviceProfile transientTaskbarDp = mDeviceProfile.toBuilder(this)
|
||||
.setIsTransientTaskbar(true).build();
|
||||
|
||||
taskbarWindowSize = transientTaskbarDp.taskbarHeight
|
||||
+ (2 * transientTaskbarDp.taskbarBottomMargin)
|
||||
taskbarWindowSize = transientTaskbarDp.getTaskbarProfile().getHeight()
|
||||
+ (2 * transientTaskbarDp.getTaskbarProfile().getBottomMargin())
|
||||
+ Math.max(extraHeightForTaskbarTooltips, resources.getDimensionPixelSize(
|
||||
R.dimen.transient_taskbar_shadow_blur));
|
||||
return Math.max(taskbarWindowSize, bubbleBarTop);
|
||||
}
|
||||
|
||||
|
||||
taskbarWindowSize = mDeviceProfile.taskbarHeight
|
||||
taskbarWindowSize = mDeviceProfile.getTaskbarProfile().getHeight()
|
||||
+ getCornerRadius()
|
||||
+ extraHeightForTaskbarTooltips;
|
||||
return Math.max(taskbarWindowSize, bubbleBarTop);
|
||||
|
||||
Reference in new issue
Block a user