Revert^3 "Improve App notification loading"
33710fd9e2
Change-Id: Ifb45f949c28bff04f8abfe3e1a73628f2e407241
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, KEY_BYPASS_DND);
|
||||
super(context, backend);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -40,11 +40,11 @@ public class DndPreferenceController extends NotificationPreferenceController
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
if (super.getAvailabilityStatus() == CONDITIONALLY_UNAVAILABLE || mChannel == null) {
|
||||
return CONDITIONALLY_UNAVAILABLE;
|
||||
public boolean isAvailable() {
|
||||
if (!super.isAvailable() || mChannel == null) {
|
||||
return false;
|
||||
}
|
||||
return AVAILABLE;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user