mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-03 01:57:40 +01:00
pebbleNotification - interaction format changed to handle better line changing
This commit is contained in:
parent
1f0f184a19
commit
5ecb337496
@ -1437,11 +1437,14 @@ public final class TwidereDataProvider extends ContentProvider implements Consta
|
||||
if (TextUtils.isEmpty(summary)) {
|
||||
style.addLine(message.getTitle());
|
||||
pebbleNotificationStringBuilder.append(message.getTitle());
|
||||
pebbleNotificationStringBuilder.append("\n");
|
||||
} else {
|
||||
style.addLine(SpanFormatter.format(resources.getString(R.string.title_summary_line_format),
|
||||
message.getTitle(), summary));
|
||||
pebbleNotificationStringBuilder.append(SpanFormatter.format(resources.getString(R.string.title_summary_line_format),
|
||||
message.getTitle(), summary));
|
||||
pebbleNotificationStringBuilder.append(message.getTitle());
|
||||
pebbleNotificationStringBuilder.append(": ");
|
||||
pebbleNotificationStringBuilder.append(message.getSummary());
|
||||
pebbleNotificationStringBuilder.append("\n");
|
||||
}
|
||||
messageLines++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user