Revert^3 "Improve App notification loading"
33710fd9e2
Change-Id: Ifb45f949c28bff04f8abfe3e1a73628f2e407241
This commit is contained in:
@@ -37,7 +37,7 @@ public class HighImportancePreferenceController extends NotificationPreferenceCo
|
||||
public HighImportancePreferenceController(Context context,
|
||||
NotificationSettings.DependentFieldListener dependentFieldListener,
|
||||
NotificationBackend backend) {
|
||||
super(context, backend, KEY_IMPORTANCE);
|
||||
super(context, backend);
|
||||
mDependentFieldListener = dependentFieldListener;
|
||||
}
|
||||
|
||||
@@ -47,19 +47,17 @@ public class HighImportancePreferenceController extends NotificationPreferenceCo
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
if (super.getAvailabilityStatus() == CONDITIONALLY_UNAVAILABLE) {
|
||||
return CONDITIONALLY_UNAVAILABLE;
|
||||
public boolean isAvailable() {
|
||||
if (!super.isAvailable()) {
|
||||
return false;
|
||||
}
|
||||
if (mChannel == null) {
|
||||
return CONDITIONALLY_UNAVAILABLE;
|
||||
return false;
|
||||
}
|
||||
if (isDefaultChannel()) {
|
||||
return CONDITIONALLY_UNAVAILABLE;
|
||||
return false;
|
||||
}
|
||||
return mChannel.getImportance() >= IMPORTANCE_DEFAULT
|
||||
? AVAILABLE
|
||||
: CONDITIONALLY_UNAVAILABLE;
|
||||
return mChannel.getImportance() >= IMPORTANCE_DEFAULT;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user