Don't reset channel field when loading the app
Only save data that's changed. Change-Id: Iaa8265f543a7c1ec418d9d016986e0a253f28df6 Fixes: 79216856 Test: robo tests
This commit is contained in:
@@ -103,8 +103,10 @@ public class BlockPreferenceController extends NotificationPreferenceController
|
||||
saveChannel();
|
||||
}
|
||||
if (mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid)) {
|
||||
mAppRow.banned = blocked;
|
||||
mBackend.setNotificationsEnabledForPackage(mAppRow.pkg, mAppRow.uid, !blocked);
|
||||
if (mAppRow.banned != blocked) {
|
||||
mAppRow.banned = blocked;
|
||||
mBackend.setNotificationsEnabledForPackage(mAppRow.pkg, mAppRow.uid, !blocked);
|
||||
}
|
||||
}
|
||||
} else if (mChannelGroup != null) {
|
||||
mChannelGroup.setBlocked(blocked);
|
||||
|
Reference in New Issue
Block a user