Check if apps allowed to show bubbles

Bug: 228132134
Test: atest SystemUITests
Change-Id: I0f29dcb9965345ef0df82779b1e12eca13f220c4
This commit is contained in:
Sergey Serokurov
2022-06-23 20:39:36 -07:00
parent ab56bf206c
commit d107f62661

View File

@@ -266,9 +266,14 @@ public class NotificationConversationInfo extends LinearLayout implements
snooze.setOnClickListener(mOnSnoozeClick);
*/
if (mAppBubble == BUBBLE_PREFERENCE_ALL) {
((TextView) findViewById(R.id.default_summary)).setText(getResources().getString(
TextView defaultSummaryTextView = findViewById(R.id.default_summary);
if (mAppBubble == BUBBLE_PREFERENCE_ALL
&& BubblesManager.areBubblesEnabled(mContext, mSbn.getUser())) {
defaultSummaryTextView.setText(getResources().getString(
R.string.notification_channel_summary_default_with_bubbles, mAppName));
} else {
defaultSummaryTextView.setText(getResources().getString(
R.string.notification_channel_summary_default));
}
findViewById(R.id.priority).setOnClickListener(mOnFavoriteClick);