Commit a960f6af by Sebastián Katzer

bigview support for android

Thanks to #92 and #114
parent c96526b7
...@@ -116,6 +116,7 @@ public class Receiver extends BroadcastReceiver { ...@@ -116,6 +116,7 @@ public class Receiver extends BroadcastReceiver {
/** /**
* Erstellt die Notification. * Erstellt die Notification.
*/ */
@SuppressLint("NewApi")
private Builder buildNotification () { private Builder buildNotification () {
Bitmap icon = BitmapFactory.decodeResource(context.getResources(), options.getIcon()); Bitmap icon = BitmapFactory.decodeResource(context.getResources(), options.getIcon());
Uri sound = options.getSound(); Uri sound = options.getSound();
...@@ -134,6 +135,11 @@ public class Receiver extends BroadcastReceiver { ...@@ -134,6 +135,11 @@ public class Receiver extends BroadcastReceiver {
notification.setSound(sound); notification.setSound(sound);
} }
if (Build.VERSION.SDK_INT > 16) {
notification.setStyle(new Notification.BigTextStyle()
.bigText(options.getMessage()));
}
setClickEvent(notification); setClickEvent(notification);
return notification; return notification;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment