mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Adjust height of tablet AllApps base on row height
- Also used hotseatQsbHeight for AllApps QSB height as they have to match to transform between each other Fix: 232907846 Test: manual on different tablets Test: atest DeviceProfileTest Change-Id: I001d0e129db2a5de6c8ace4c3302381110da03f1
This commit is contained in:
@@ -91,12 +91,12 @@ public class WorkModeSwitch extends Button implements Insettable, View.OnClickLi
|
||||
MarginLayoutParams lp = (MarginLayoutParams) getLayoutParams();
|
||||
if (lp != null) {
|
||||
int bottomMargin = getResources().getDimensionPixelSize(R.dimen.work_fab_margin_bottom);
|
||||
DeviceProfile dp = ActivityContext.lookupContext(getContext()).getDeviceProfile();
|
||||
if (FeatureFlags.ENABLE_FLOATING_SEARCH_BAR.get()) {
|
||||
bottomMargin <<= 1; // Double margin to add space above search bar.
|
||||
bottomMargin += getResources().getDimensionPixelSize(R.dimen.qsb_widget_height);
|
||||
bottomMargin += dp.hotseatQsbHeight;
|
||||
}
|
||||
|
||||
DeviceProfile dp = ActivityContext.lookupContext(getContext()).getDeviceProfile();
|
||||
if (!dp.isGestureMode) {
|
||||
if (dp.isTaskbarPresent) {
|
||||
bottomMargin += dp.taskbarSize;
|
||||
|
||||
Reference in New Issue
Block a user