Add preference click metric logs for some special cases
Bug: 137559984 Test: visual, robotest Change-Id: If8624b49abcd0000487065160ce4a7ba861f234c
This commit is contained in:
@@ -28,6 +28,7 @@ import android.provider.Contacts;
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
|
||||
import com.android.settings.dashboard.DashboardFragment;
|
||||
import com.android.settingslib.core.lifecycle.Lifecycle;
|
||||
|
||||
public class ZenModeStarredContactsPreferenceController extends
|
||||
@@ -89,6 +90,8 @@ public class ZenModeStarredContactsPreferenceController extends
|
||||
|
||||
@Override
|
||||
public boolean onPreferenceClick(Preference preference) {
|
||||
mMetricsFeatureProvider.logClickedPreference(preference,
|
||||
preference.getExtras().getInt(DashboardFragment.CATEGORY));
|
||||
if (mStarredContactsIntent.resolveActivity(mPackageManager) != null) {
|
||||
mContext.startActivity(mStarredContactsIntent);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user