From 3aacfca16ffa3249119f2f16f790c38b1156b1c8 Mon Sep 17 00:00:00 2001 From: Lei Yu Date: Tue, 23 Apr 2019 14:23:28 -0700 Subject: [PATCH] Fix issue in panel logging Update log key to slice uri since previous key has no meaning. Previously it is something like: androidx.slice.widget.SliceLiveData$SliceLiveDataImpl@1a30b5 Bug: 131094876 Test: Manual Change-Id: I52d605eb826821ef622aa075c04f829c60692976 --- src/com/android/settings/panel/PanelSlicesAdapter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/panel/PanelSlicesAdapter.java b/src/com/android/settings/panel/PanelSlicesAdapter.java index dcd878e2291..0f525cc39da 100644 --- a/src/com/android/settings/panel/PanelSlicesAdapter.java +++ b/src/com/android/settings/panel/PanelSlicesAdapter.java @@ -33,6 +33,7 @@ import androidx.slice.widget.SliceView; import com.android.settings.R; import com.android.settings.overlay.FeatureFactory; + import com.google.android.setupdesign.DividerItemDecoration; import java.util.ArrayList; @@ -128,7 +129,8 @@ public class PanelSlicesAdapter .action(0 /* attribution */, SettingsEnums.ACTION_PANEL_INTERACTION, mMetricsCategory, - sliceLiveData.toString() /* log key */, + sliceLiveData.getValue().getUri().getLastPathSegment() + /* log key */, eventInfo.actionType /* value */); }) );