Revert^3 "Improve App notification loading"

33710fd9e2

Change-Id: Ifb45f949c28bff04f8abfe3e1a73628f2e407241
(cherry picked from commit 475632c4fe)
Merged-In: Ifb45f949c28bff04f8abfe3e1a73628f2e407241
This commit is contained in:
Michael Wright
2022-08-24 12:22:12 +00:00
committed by Android Build Coastguard Worker
parent db838dd3d4
commit 6d40391f42
34 changed files with 272 additions and 318 deletions

View File

@@ -32,15 +32,15 @@ public class BubbleLinkPreferenceController extends NotificationPreferenceContro
static final int ON = 1;
public BubbleLinkPreferenceController(Context context) {
super(context, null, KEY);
super(context, null);
}
@Override
public int getAvailabilityStatus() {
if (super.getAvailabilityStatus() == CONDITIONALLY_UNAVAILABLE) {
return CONDITIONALLY_UNAVAILABLE;
public boolean isAvailable() {
if (!super.isAvailable()) {
return false;
}
return areBubblesEnabled() ? AVAILABLE : CONDITIONALLY_UNAVAILABLE;
return areBubblesEnabled();
}
@Override