Settings: Migrate notification access screens to switch prefs.

Bug: 20916418
Change-Id: I729bc3a6f853f15780f12e7d7c9f337447e399c4
This commit is contained in:
John Spurlock
2015-05-11 11:16:37 -04:00
parent 46c8f759fd
commit b8099f542c
4 changed files with 104 additions and 259 deletions

View File

@@ -21,6 +21,7 @@ import android.content.pm.PackageManager;
import android.provider.Settings;
import android.service.notification.NotificationListenerService;
import com.android.internal.logging.MetricsLogger;
import com.android.settings.R;
public class NotificationAccessSettings extends ManagedServiceSettings {
@@ -40,6 +41,11 @@ public class NotificationAccessSettings extends ManagedServiceSettings {
return c;
}
@Override
protected int getMetricsCategory() {
return MetricsLogger.NOTIFICATION_ACCESS;
}
@Override
protected Config getConfig() {
return CONFIG;