Revert^2 "Improve App notification loading"
c5f1cb11e0
Change-Id: I5a6d39e0a5f2b7bd30bcc12e207b8bb23857c6d8
This commit is contained in:
@@ -31,7 +31,7 @@ public class DndPreferenceController extends NotificationPreferenceController
|
||||
private static final String KEY_BYPASS_DND = "bypass_dnd";
|
||||
|
||||
public DndPreferenceController(Context context, NotificationBackend backend) {
|
||||
super(context, backend);
|
||||
super(context, backend, KEY_BYPASS_DND);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -40,11 +40,11 @@ public class DndPreferenceController extends NotificationPreferenceController
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
if (!super.isAvailable() || mChannel == null) {
|
||||
return false;
|
||||
public int getAvailabilityStatus() {
|
||||
if (super.getAvailabilityStatus() == CONDITIONALLY_UNAVAILABLE || mChannel == null) {
|
||||
return CONDITIONALLY_UNAVAILABLE;
|
||||
}
|
||||
return true;
|
||||
return AVAILABLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user