pebbleNotification - interaction format changed to handle better line changing

This commit is contained in:
Minori Hiraoka 2016-06-12 11:53:28 +09:00
parent 1f0f184a19
commit 5ecb337496
1 changed files with 5 additions and 2 deletions

View File

@ -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++;
}