mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-03 01:57:40 +01:00
Custom titled pebbleNotification with interaction and DM
This commit is contained in:
parent
3a23182434
commit
1f0f184a19
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user