Add screen for all conversations
Test: atest Bug: 149583455 Change-Id: I9704082d097ef2bb17c051703e380f573056318c
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user