Custom titled pebbleNotification with interaction and DM

This commit is contained in:
Minori Hiraoka 2016-06-12 11:41:02 +09:00
parent 3a23182434
commit 1f0f184a19
1 changed files with 2 additions and 2 deletions

View File

@ -1466,7 +1466,7 @@ public final class TwidereDataProvider extends ContentProvider implements Consta
accountKey);
mNotificationManager.notify("interactions", notificationId, builder.build());
Utils.sendPebbleNotification(context, pebbleNotificationStringBuilder.toString());
Utils.sendPebbleNotification(context, context.getResources().getString(R.string.interactions), pebbleNotificationStringBuilder.toString());
}
@ -1662,7 +1662,7 @@ public final class TwidereDataProvider extends ContentProvider implements Consta
nm.notify("messages_" + accountKey, NOTIFICATION_ID_DIRECT_MESSAGES, builder.build());
//TODO: Pebble notification - Only notify about recently added DMs, not previous ones?
Utils.sendPebbleNotification(context, pebbleNotificationBuilder.toString());
Utils.sendPebbleNotification(context, "DM", pebbleNotificationBuilder.toString());
} catch (SecurityException e) {
// Silently ignore
}