Skip to content
Snippets Groups Projects
Commit 8a81c8ec authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

[Minimal HUN] Show always sender name in messaging hun

Bug: 336229954
Flag: android.app.Flags.compact_heads_up_notification
Test: SystemUITest and manual
Change-Id: Iedf0fb9b4770fe38d0f5f83a976ecbfad6ed1c89
parent 470ea192
No related branches found
No related tags found
No related merge requests found
......@@ -8918,10 +8918,9 @@ public class Notification implements Parcelable
sender = stripStyling(sender);
}
 
final boolean showOnlySenderName = showOnlySenderName();
final CharSequence title;
boolean isConversationTitleAvailable = !showOnlySenderName && conversationTitle != null;
final boolean isConversationTitleAvailable = showConversationTitle()
&& conversationTitle != null;
if (isConversationTitleAvailable) {
title = conversationTitle;
} else {
......@@ -8941,10 +8940,10 @@ public class Notification implements Parcelable
}
}
 
/** developer settings to always show sender name */
private boolean showOnlySenderName() {
/** (b/342370742) Developer settings to show conversation title. */
private boolean showConversationTitle() {
return SystemProperties.getBoolean(
"persist.compact_heads_up_notification.show_only_sender_name",
"persist.compact_heads_up_notification.show_conversation_title_for_group",
false);
}
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment