Skip to content

Commit

Permalink
BlockchainServiceImpl: Set group alert behaviour on child 'received c…
Browse files Browse the repository at this point in the history
…oin' notification too.
  • Loading branch information
Andreas Schildbach committed Sep 20, 2017
1 parent ba3251f commit ae5a60f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ private void notifyCoinsReceived(@Nullable final Address address, final Coin amo
final NotificationCompat.Builder childNotification = new NotificationCompat.Builder(this,
Constants.NOTIFICATION_CHANNEL_ID_RECEIVED);
childNotification.setGroup(Constants.NOTIFICATION_GROUP_KEY_RECEIVED);
childNotification.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN);
childNotification.setWhen(System.currentTimeMillis());
childNotification.setSmallIcon(R.drawable.stat_notify_received_24dp);
final String msg = getString(R.string.notification_coins_received_msg, btcFormat.format(amount)) + msgSuffix;
Expand Down

0 comments on commit ae5a60f

Please sign in to comment.