Add screen for all conversations

Test: atest
Bug: 149583455
Change-Id: I9704082d097ef2bb17c051703e380f573056318c
This commit is contained in:
Julia Reynolds
2020-02-14 16:45:15 -05:00
parent 184e2f34ab
commit 1ee9dce20c
11 changed files with 776 additions and 91 deletions

View File

@@ -261,6 +261,15 @@ public class NotificationBackend {
}
}
public ParceledListSlice<ConversationChannelWrapper> getConversations(boolean onlyImportant) {
try {
return sINM.getConversations(onlyImportant);
} catch (Exception e) {
Log.w(TAG, "Error calling NoMan", e);
return ParceledListSlice.emptyList();
}
}
/**
* Returns all notification channels associated with the package and uid that will bypass DND
*/
@@ -514,6 +523,9 @@ public class NotificationBackend {
public Drawable getConversationDrawable(Context context, ShortcutInfo info, String pkg,
int uid) {
if (info == null) {
return null;
}
ConversationIconFactory iconFactory = new ConversationIconFactory(context,
context.getSystemService(LauncherApps.class),
context.getPackageManager(), IconDrawableFactory.newInstance(context),