mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
[automerger] Skip logging if device profile is not initialized am: 87168ca1f7
Change-Id: I2729ac8d3ac15ac7dd92aba2927c6cbb8dd7b3de
This commit is contained in:
@@ -683,15 +683,20 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity> {
|
||||
}
|
||||
|
||||
private void doLogGesture(boolean toLauncher) {
|
||||
DeviceProfile dp = mDp;
|
||||
if (dp == null) {
|
||||
// We probably never received an animation controller, skip logging.
|
||||
return;
|
||||
}
|
||||
final int direction;
|
||||
if (mDp.isVerticalBarLayout()) {
|
||||
direction = (mDp.isSeascape() ^ toLauncher) ? Direction.LEFT : Direction.RIGHT;
|
||||
if (dp.isVerticalBarLayout()) {
|
||||
direction = (dp.isSeascape() ^ toLauncher) ? Direction.LEFT : Direction.RIGHT;
|
||||
} else {
|
||||
direction = toLauncher ? Direction.UP : Direction.DOWN;
|
||||
}
|
||||
|
||||
int dstContainerType = toLauncher ? ContainerType.TASKSWITCHER : ContainerType.APP;
|
||||
UserEventDispatcher.newInstance(mContext, mDp).logStateChangeAction(
|
||||
UserEventDispatcher.newInstance(mContext, dp).logStateChangeAction(
|
||||
mLogAction, direction,
|
||||
ContainerType.NAVBAR, ContainerType.APP,
|
||||
dstContainerType,
|
||||
|
||||
Reference in New Issue
Block a user