Merge "NAS Setting Migration" into sc-dev
This commit is contained in:
@@ -189,7 +189,7 @@ interface INotificationManager
|
||||
ComponentName getAllowedNotificationAssistantForUser(int userId);
|
||||
ComponentName getAllowedNotificationAssistant();
|
||||
ComponentName getDefaultNotificationAssistant();
|
||||
void resetDefaultNotificationAssistant(boolean loadFromConfig);
|
||||
void setNASMigrationDoneAndResetDefault(int userId, boolean loadFromConfig);
|
||||
boolean hasEnabledNotificationListener(String packageName, int userId);
|
||||
|
||||
@UnsupportedAppUsage
|
||||
|
||||
@@ -5177,8 +5177,13 @@ public class NotificationManagerService extends SystemService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resetDefaultNotificationAssistant(boolean loadFromConfig) {
|
||||
public void setNASMigrationDoneAndResetDefault(int userId, boolean loadFromConfig) {
|
||||
checkCallerIsSystem();
|
||||
setNASMigrationDone(userId);
|
||||
cancelNotificationInternal(getContext().getPackageName(),
|
||||
getContext().getOpPackageName(), Binder.getCallingUid(),
|
||||
Binder.getCallingPid(), TAG,
|
||||
SystemMessageProto.SystemMessage.NOTE_NAS_UPGRADE, userId);
|
||||
if (loadFromConfig) {
|
||||
mAssistants.resetDefaultFromConfig();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user