Merge "Use hasSentValidBubble in settings"
This commit is contained in:
@@ -361,6 +361,15 @@ public class NotificationBackend {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasSentValidBubble(String pkg, int uid) {
|
||||
try {
|
||||
return sINM.hasSentValidBubble(pkg, uid);
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Error calling NoMan", e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all notification channels associated with the package and uid that will bypass DND
|
||||
*/
|
||||
|
@@ -63,7 +63,7 @@ public class BubbleSummaryPreferenceController extends NotificationPreferenceCon
|
||||
return mAppRow != null;
|
||||
}
|
||||
}
|
||||
return isGloballyEnabled() && mBackend.hasSentValidMsg(mAppRow.pkg, mAppRow.uid);
|
||||
return isGloballyEnabled() && mBackend.hasSentValidBubble(mAppRow.pkg, mAppRow.uid);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user