Change TAPL to swipe to stash taskbar (instead of deprecated long press)
This also means Taskbar is transient by default in automated tests, instead of persistent. Updated some checks accordingly. Flag: LEGACY ENABLE_TRANSIENT_TASKBAR ENABLED Test: TaskbarExpandCollapse#hideShowTaskbar; TaplTestsTaskbar; TaplTestsTransientTaskbar; TaplTestsPersistentTaskbar Bug: 270395798 Change-Id: Ie7b8fcedb94e33742b7bf18cb829dab55af74b7d
This commit is contained in:
@@ -41,6 +41,7 @@ import com.android.launcher3.AbstractFloatingView;
|
||||
import com.android.launcher3.DeviceProfile;
|
||||
import com.android.launcher3.InsettableFrameLayout;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.testing.shared.ResourceUtils;
|
||||
import com.android.launcher3.util.MultiPropertyFactory.MultiProperty;
|
||||
import com.android.launcher3.util.MultiValueAlpha;
|
||||
import com.android.launcher3.util.TouchController;
|
||||
@@ -559,7 +560,8 @@ public abstract class BaseDragLayer<T extends Context & ActivityContext>
|
||||
DeviceProfile dp = mActivity.getDeviceProfile();
|
||||
if (dp.isTaskbarPresent) {
|
||||
// Ignore taskbar gesture insets to avoid interfering with TouchControllers.
|
||||
gestureInsetBottom = Math.max(0, gestureInsetBottom - dp.taskbarHeight);
|
||||
gestureInsetBottom = ResourceUtils.getNavbarSize(
|
||||
ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE, getResources());
|
||||
}
|
||||
mSystemGestureRegion.set(
|
||||
Math.max(gestureInsets.left, imeInset.left),
|
||||
|
||||
Reference in New Issue
Block a user