Merge "Switch from shortlabel to label" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6d63120295
@@ -150,7 +150,7 @@ public class AppConversationListPreferenceController extends NotificationPrefere
|
||||
ShortcutInfo si = conversation.getShortcutInfo();
|
||||
|
||||
pref.setTitle(si != null
|
||||
? si.getShortLabel()
|
||||
? si.getLabel()
|
||||
: conversation.getNotificationChannel().getName());
|
||||
pref.setSummary(conversation.getNotificationChannel().getGroup() != null
|
||||
? mContext.getString(R.string.notification_conversation_summary,
|
||||
|
@@ -124,7 +124,7 @@ public class ConversationHeaderPreferenceController extends NotificationPreferen
|
||||
@VisibleForTesting
|
||||
CharSequence getLabel() {
|
||||
return mConversationInfo != null
|
||||
? mConversationInfo.getShortLabel()
|
||||
? mConversationInfo.getLabel()
|
||||
: mChannel.getName();
|
||||
}
|
||||
}
|
||||
|
@@ -116,7 +116,7 @@ public abstract class ConversationListPreferenceController extends AbstractPrefe
|
||||
CharSequence getTitle(ConversationChannelWrapper conversation) {
|
||||
ShortcutInfo si = conversation.getShortcutInfo();
|
||||
return si != null
|
||||
? si.getShortLabel()
|
||||
? si.getLabel()
|
||||
: conversation.getNotificationChannel().getName();
|
||||
}
|
||||
|
||||
@@ -154,8 +154,8 @@ public abstract class ConversationListPreferenceController extends AbstractPrefe
|
||||
return o1.getNotificationChannel().getId().compareTo(
|
||||
o2.getNotificationChannel().getId());
|
||||
}
|
||||
return sCollator.compare(o1.getShortcutInfo().getShortLabel(),
|
||||
o2.getShortcutInfo().getShortLabel());
|
||||
return sCollator.compare(o1.getShortcutInfo().getLabel(),
|
||||
o2.getShortcutInfo().getLabel());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user