mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Landscape 3 button nav on taskbar phone supported
* TODO: Seascape bar positioning, add tests Change-Id: I542be2f2f682d8c8a9cdd9bb6c667c44ca167f3e Merged-In: I542be2f2f682d8c8a9cdd9bb6c667c44ca167f3e
This commit is contained in:
@@ -16,11 +16,13 @@
|
||||
package com.android.launcher3.taskbar;
|
||||
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Point;
|
||||
import android.graphics.Rect;
|
||||
import android.view.ViewTreeObserver;
|
||||
|
||||
import com.android.launcher3.DeviceProfile;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.util.DimensionUtils;
|
||||
import com.android.launcher3.util.TouchController;
|
||||
import com.android.quickstep.AnimatedFloat;
|
||||
|
||||
@@ -177,9 +179,12 @@ public class TaskbarDragLayerController implements TaskbarControllers.LoggableTa
|
||||
DeviceProfile deviceProfile = mActivity.getDeviceProfile();
|
||||
if (TaskbarManager.isPhoneMode(deviceProfile)) {
|
||||
Resources resources = mActivity.getResources();
|
||||
return mActivity.isThreeButtonNav() ?
|
||||
resources.getDimensionPixelSize(R.dimen.taskbar_size) :
|
||||
resources.getDimensionPixelSize(R.dimen.taskbar_stashed_size);
|
||||
Point taskbarDimensions =
|
||||
DimensionUtils.getTaskbarPhoneDimensions(deviceProfile, resources,
|
||||
TaskbarManager.isPhoneMode(deviceProfile));
|
||||
return taskbarDimensions.y == -1 ?
|
||||
deviceProfile.getDisplayInfo().currentSize.y :
|
||||
taskbarDimensions.y;
|
||||
} else {
|
||||
return deviceProfile.taskbarSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user