Refresh the app's "Conversations" list when there are none
Also hide the header in that case (simiarly to bubbles). Test: atest (new) + manual Fixes: 273748214 Change-Id: I4f758a0bf5bb8cfa91701185f1568b358d8903a0
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user