summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BaseActivity.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2018-05-22 15:41:25 -0700
committerHyunyoung Song <hyunyoungs@google.com>2018-05-23 11:35:02 -0700
commit46d07f7cb0dc95d28b83bacf2c2b6807009b3ff2 (patch)
treedc82ebe9531cb8d8a37b46f6ff465ba90f0e41f6 /src/com/android/launcher3/BaseActivity.java
parent8417a7b5140bf6dd27702331e787887a7b8c2e3d (diff)
downloadpackages_apps_Trebuchet-46d07f7cb0dc95d28b83bacf2c2b6807009b3ff2.tar.gz
packages_apps_Trebuchet-46d07f7cb0dc95d28b83bacf2c2b6807009b3ff2.tar.bz2
packages_apps_Trebuchet-46d07f7cb0dc95d28b83bacf2c2b6807009b3ff2.zip
Log the parent of the PREDICTION container type (ALLAPPS OR TASKSWITCHER)
Bug: 79423536 Change-Id: I23ff0d4d0aa3fec781e9b6c8792d2d7a738ca6c8
Diffstat (limited to 'src/com/android/launcher3/BaseActivity.java')
-rw-r--r--src/com/android/launcher3/BaseActivity.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/launcher3/BaseActivity.java b/src/com/android/launcher3/BaseActivity.java
index 421966755..e117deb81 100644
--- a/src/com/android/launcher3/BaseActivity.java
+++ b/src/com/android/launcher3/BaseActivity.java
@@ -30,7 +30,9 @@ import android.view.View.AccessibilityDelegate;
import com.android.launcher3.DeviceProfile.OnDeviceProfileChangeListener;
import com.android.launcher3.logging.UserEventDispatcher;
+import com.android.launcher3.logging.UserEventDispatcher.UserEventDelegate;
import com.android.launcher3.uioverrides.UiFactory;
+import com.android.launcher3.userevent.nano.LauncherLogProto;
import com.android.launcher3.util.SystemUiController;
import java.io.FileDescriptor;
@@ -38,7 +40,7 @@ import java.io.PrintWriter;
import java.lang.annotation.Retention;
import java.util.ArrayList;
-public abstract class BaseActivity extends Activity {
+public abstract class BaseActivity extends Activity implements UserEventDelegate{
public static final int INVISIBLE_BY_STATE_HANDLER = 1 << 0;
public static final int INVISIBLE_BY_APP_TRANSITIONS = 1 << 1;
@@ -89,9 +91,11 @@ public abstract class BaseActivity extends Activity {
return null;
}
+ public void modifyUserEvent(LauncherLogProto.LauncherEvent event) {}
+
public final UserEventDispatcher getUserEventDispatcher() {
if (mUserEventDispatcher == null) {
- mUserEventDispatcher = UserEventDispatcher.newInstance(this, mDeviceProfile);
+ mUserEventDispatcher = UserEventDispatcher.newInstance(this, mDeviceProfile, this);
}
return mUserEventDispatcher;
}