Revert "Improve App notification loading"
Revert "Fix binder error when an app has many channels"
Revert submission 19290255-jr-bind-flicker
Reason for revert: b/240100577
Reverted Changes:
I9a1c96f75:Improve App notification loading
I391ce0b10:Fix binder error when an app has many channels
Change-Id: Iaae40de74d135a79c18201ec17e00f3d9d5f0f3b
(cherry picked from commit c5f1cb11e0)
Merged-In: Iaae40de74d135a79c18201ec17e00f3d9d5f0f3b
This commit is contained in:
committed by
Android Build Coastguard Worker
parent
ed6e1508a1
commit
df538d204a
@@ -30,7 +30,7 @@ public class NotificationsOffPreferenceController extends NotificationPreference
|
||||
private static final String KEY_BLOCKED_DESC = "block_desc";
|
||||
|
||||
public NotificationsOffPreferenceController(Context context) {
|
||||
super(context, null, KEY_BLOCKED_DESC);
|
||||
super(context, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -39,20 +39,16 @@ public class NotificationsOffPreferenceController extends NotificationPreference
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
public boolean isAvailable() {
|
||||
if (mAppRow == null) {
|
||||
return CONDITIONALLY_UNAVAILABLE;
|
||||
return false;
|
||||
}
|
||||
if (mPreferenceFilter != null && !isIncludedInFilter()) {
|
||||
return CONDITIONALLY_UNAVAILABLE;
|
||||
return false;
|
||||
}
|
||||
// Available only when other controllers are unavailable - this UI replaces the UI that
|
||||
// would give more detailed notification controls.
|
||||
if (super.getAvailabilityStatus() == AVAILABLE) {
|
||||
return CONDITIONALLY_UNAVAILABLE;
|
||||
} else {
|
||||
return AVAILABLE;
|
||||
}
|
||||
return !super.isAvailable();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user