Add taskbarIconSize to GridOption/DisplayOptions
- Renamed variables to make it more clear what they represent - DeviceProfile will be source of truth for taskbar sizes Bug: 265144213 Test: phone, multi-display, tablet Change-Id: Id9c19d15a65894fd7645e0f876a4b6527b713c34 Flag: ENABLE_TRANSIENT_TASKBAR=true
This commit is contained in:
@@ -111,13 +111,11 @@ public class StashedHandleViewController implements TaskbarControllers.LoggableT
|
||||
mStashedHandleWidth =
|
||||
resources.getDimensionPixelSize(R.dimen.taskbar_stashed_small_screen);
|
||||
} else {
|
||||
mTaskbarSize = deviceProfile.taskbarSize;
|
||||
mTaskbarSize = deviceProfile.taskbarHeight;
|
||||
mStashedHandleWidth = resources
|
||||
.getDimensionPixelSize(R.dimen.taskbar_stashed_handle_width);
|
||||
}
|
||||
int taskbarBottomMargin = DisplayController.isTransientTaskbar(mActivity)
|
||||
? resources.getDimensionPixelSize(R.dimen.transient_taskbar_margin)
|
||||
: 0;
|
||||
int taskbarBottomMargin = deviceProfile.taskbarBottomMargin;
|
||||
mStashedHandleView.getLayoutParams().height = mTaskbarSize + taskbarBottomMargin;
|
||||
|
||||
mTaskbarStashedHandleAlpha.get(ALPHA_INDEX_STASHED).setValue(
|
||||
|
||||
Reference in New Issue
Block a user