Migrate all MetricsProto enums to SettingsEnums
Bug: 122855168 Test: rebuild Change-Id: I962d9a71179f86b7cae9dc5e9a00e0aa1557dc76
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.android.settings.notification;
|
||||
|
||||
import android.app.NotificationManager;
|
||||
import android.app.settings.SettingsEnums;
|
||||
import android.content.Context;
|
||||
import android.provider.Settings;
|
||||
import android.util.Log;
|
||||
@@ -24,7 +25,6 @@ import android.util.Log;
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.SwitchPreference;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
import com.android.settingslib.core.lifecycle.Lifecycle;
|
||||
|
||||
public class ZenModeRemindersPreferenceController extends AbstractZenModePreferenceController
|
||||
@@ -71,7 +71,7 @@ public class ZenModeRemindersPreferenceController extends AbstractZenModePrefere
|
||||
Log.d(TAG, "onPrefChange allowReminders=" + allowReminders);
|
||||
}
|
||||
mMetricsFeatureProvider.action(mContext,
|
||||
MetricsProto.MetricsEvent.ACTION_ZEN_ALLOW_REMINDERS, allowReminders);
|
||||
SettingsEnums.ACTION_ZEN_ALLOW_REMINDERS, allowReminders);
|
||||
mBackend.saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_REMINDERS,
|
||||
allowReminders);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user