Commit a960f6af authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

bigview support for android

Thanks to #92 and #114
parent c96526b7
Loading
Loading
Loading
Loading
+6 −0
Changes for src/android/Receiver.java: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -116,6 +116,7 @@ public class Receiver extends BroadcastReceiver {
    /**
     * Erstellt die Notification.
     */
    @SuppressLint("NewApi")
	private Builder buildNotification () {
        Bitmap icon = BitmapFactory.decodeResource(context.getResources(), options.getIcon());
        Uri sound   = options.getSound();
@@ -134,6 +135,11 @@ public class Receiver extends BroadcastReceiver {
        	notification.setSound(sound);
        }

        if (Build.VERSION.SDK_INT > 16) {
        	notification.setStyle(new Notification.BigTextStyle()
        		.bigText(options.getMessage()));
        }
        
        setClickEvent(notification);

        return notification;