From 1f0f184a19748f40d29081a97b7d62e20fb484a3 Mon Sep 17 00:00:00 2001 From: Minori Hiraoka Date: Sun, 12 Jun 2016 11:41:02 +0900 Subject: [PATCH] Custom titled pebbleNotification with interaction and DM --- .../org/mariotaku/twidere/provider/TwidereDataProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twidere/src/main/java/org/mariotaku/twidere/provider/TwidereDataProvider.java b/twidere/src/main/java/org/mariotaku/twidere/provider/TwidereDataProvider.java index 18e4419e0..5f2a1d4c2 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/provider/TwidereDataProvider.java +++ b/twidere/src/main/java/org/mariotaku/twidere/provider/TwidereDataProvider.java @@ -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 }