summaryrefslogtreecommitdiffstats
path: root/quickstep
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2018-07-02 13:17:32 -0700
committerHyunyoung Song <hyunyoungs@google.com>2018-07-11 23:31:01 -0700
commit956ec4b0e53c95e3464468c01d6e9b7fe2faf0cb (patch)
treed237090b8ab53b04e66be32c53f2271777d190be /quickstep
parent17b7d3659451472302f200c5b27174e03c735520 (diff)
downloadandroid_packages_apps_Trebuchet-956ec4b0e53c95e3464468c01d6e9b7fe2faf0cb.tar.gz
android_packages_apps_Trebuchet-956ec4b0e53c95e3464468c01d6e9b7fe2faf0cb.tar.bz2
android_packages_apps_Trebuchet-956ec4b0e53c95e3464468c01d6e9b7fe2faf0cb.zip
Remove device profile dependency from UserEventDispatcher
Bug: 110122682 Change-Id: I31ba61e60e31f1cc84e6d0cf115193e45d9fcfdb
Diffstat (limited to 'quickstep')
-rw-r--r--quickstep/src/com/android/quickstep/OverviewCommandHelper.java5
-rw-r--r--quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java2
2 files changed, 2 insertions, 5 deletions
diff --git a/quickstep/src/com/android/quickstep/OverviewCommandHelper.java b/quickstep/src/com/android/quickstep/OverviewCommandHelper.java
index 5d4d2c8f3..7c6eb3259 100644
--- a/quickstep/src/com/android/quickstep/OverviewCommandHelper.java
+++ b/quickstep/src/com/android/quickstep/OverviewCommandHelper.java
@@ -49,7 +49,6 @@ import android.view.ViewConfiguration;
import com.android.launcher3.AbstractFloatingView;
import com.android.launcher3.BaseDraggingActivity;
-import com.android.launcher3.InvariantDeviceProfile;
import com.android.launcher3.MainThreadExecutor;
import com.android.launcher3.anim.AnimationSuccessListener;
import com.android.launcher3.logging.UserEventDispatcher;
@@ -198,9 +197,7 @@ public class OverviewCommandHelper {
public void onTip(int actionType, int viewType) {
mMainThreadExecutor.execute(() ->
- UserEventDispatcher.newInstance(mContext,
- InvariantDeviceProfile.INSTANCE.get(mContext).getDeviceProfile(mContext))
- .logActionTip(actionType, viewType));
+ UserEventDispatcher.newInstance(mContext).logActionTip(actionType, viewType));
}
public ActivityControlHelper getActivityControlHelper() {
diff --git a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
index 793def99f..f5202d096 100644
--- a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
+++ b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
@@ -754,7 +754,7 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity> {
}
int dstContainerType = toLauncher ? ContainerType.TASKSWITCHER : ContainerType.APP;
- UserEventDispatcher.newInstance(mContext, dp).logStateChangeAction(
+ UserEventDispatcher.newInstance(mContext).logStateChangeAction(
mLogAction, direction,
ContainerType.NAVBAR, ContainerType.APP,
dstContainerType,