Add support for logging action type
Make the logging event more generic to allow for
logging different actions if available when the
button is clicked.
Bug: 79998355
Change-Id: Id75073136b4167911830606d356541e632705ed3
diff --git a/src/com/android/wallpaper/picker/TopLevelPickerActivity.java b/src/com/android/wallpaper/picker/TopLevelPickerActivity.java
index fa46373..9f74596 100755
--- a/src/com/android/wallpaper/picker/TopLevelPickerActivity.java
+++ b/src/com/android/wallpaper/picker/TopLevelPickerActivity.java
@@ -26,7 +26,6 @@
import android.graphics.Point;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
-import android.graphics.drawable.VectorDrawable;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Build.VERSION;
@@ -600,8 +599,9 @@
mCurrentWallpaperExploreButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
- mUserEventLogger.logExploreClicked(
- homeWallpaper.getCollectionId(appContext));
+ mUserEventLogger.logActionClicked(
+ homeWallpaper.getCollectionId(appContext),
+ homeWallpaper.getActionLabelRes(appContext));
startActivity(exploreIntent);
}
});