Merge "Don't reset channel field when loading the app" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7ae4b0bbdc
@@ -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