diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2018-02-22 10:07:32 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2018-02-22 10:21:41 -0800 |
commit | d70e75a514f62628ee59d4eb53160bbf2d1743fe (patch) | |
tree | 2f8a97f52301676ca3c23cd30367729349992e21 /src/com/android/launcher3/logging/UserEventDispatcher.java | |
parent | 668dd40a984a66ae505878f711da4b34bca74b89 (diff) | |
download | packages_apps_Trebuchet-d70e75a514f62628ee59d4eb53160bbf2d1743fe.tar.gz packages_apps_Trebuchet-d70e75a514f62628ee59d4eb53160bbf2d1743fe.tar.bz2 packages_apps_Trebuchet-d70e75a514f62628ee59d4eb53160bbf2d1743fe.zip |
Removing launcher dependency when logging quickstep interaction
as Launcher may not be ready when the touch gesture completes.
Change-Id: Ia69eb7bfb0340f7b7ce9b6c67be8851e5429f867
Diffstat (limited to 'src/com/android/launcher3/logging/UserEventDispatcher.java')
-rw-r--r-- | src/com/android/launcher3/logging/UserEventDispatcher.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/launcher3/logging/UserEventDispatcher.java b/src/com/android/launcher3/logging/UserEventDispatcher.java index b7de40060..db3826b4d 100644 --- a/src/com/android/launcher3/logging/UserEventDispatcher.java +++ b/src/com/android/launcher3/logging/UserEventDispatcher.java @@ -27,6 +27,7 @@ import android.util.Log; import android.view.View; import android.view.ViewParent; +import com.android.launcher3.DeviceProfile; import com.android.launcher3.DropTarget; import com.android.launcher3.ItemInfo; import com.android.launcher3.R; @@ -65,8 +66,7 @@ public class UserEventDispatcher { FeatureFlags.IS_DOGFOOD_BUILD && Utilities.isPropertyEnabled(LogConfig.USEREVENT); private static final String UUID_STORAGE = "uuid"; - public static UserEventDispatcher newInstance(Context context, boolean isInLandscapeMode, - boolean isInMultiWindowMode) { + public static UserEventDispatcher newInstance(Context context, DeviceProfile dp) { SharedPreferences sharedPrefs = Utilities.getDevicePrefs(context); String uuidStr = sharedPrefs.getString(UUID_STORAGE, null); if (uuidStr == null) { @@ -75,8 +75,8 @@ public class UserEventDispatcher { } UserEventDispatcher ued = Utilities.getOverrideObject(UserEventDispatcher.class, context.getApplicationContext(), R.string.user_event_dispatcher_class); - ued.mIsInLandscapeMode = isInLandscapeMode; - ued.mIsInMultiWindowMode = isInMultiWindowMode; + ued.mIsInLandscapeMode = dp.isVerticalBarLayout(); + ued.mIsInMultiWindowMode = dp.isMultiWindowMode; ued.mUuidStr = uuidStr; return ued; } |