Merge "Refresh the app's "Conversations" list when there are none" into udc-dev

This commit is contained in:
Matías Hernández
2023-03-16 15:57:11 +00:00
committed by Android (Google) Code Review
2 changed files with 175 additions and 6 deletions

View File

@@ -127,15 +127,13 @@ public class AppConversationListPreferenceController extends NotificationPrefere
return;
}
if (!mConversations.isEmpty()) {
// TODO: if preference has children, compare with newly loaded list
mPreference.removeAll();
mPreference.setTitle(getTitleResId());
populateConversations();
}
mPreference.setTitle(getTitleResId());
populateConversations();
}
private void populateConversations() {
mPreference.removeAll();
mPreference.setVisible(!mConversations.isEmpty());
for (ConversationChannelWrapper conversation : mConversations) {
if (conversation.getNotificationChannel().isDemoted()) {
continue;