Commit 34110162 by Sebastián Katzer

Prefer default style

parent c00e96af
...@@ -116,12 +116,8 @@ public class Builder { ...@@ -116,12 +116,8 @@ public class Builder {
*/ */
public Notification build() { public Notification build() {
Uri sound = options.getSoundUri(); Uri sound = options.getSoundUri();
NotificationCompat.BigTextStyle style;
NotificationCompat.Builder builder; NotificationCompat.Builder builder;
style = new NotificationCompat.BigTextStyle()
.bigText(options.getText());
builder = new NotificationCompat.Builder(context) builder = new NotificationCompat.Builder(context)
.setDefaults(0) .setDefaults(0)
.setContentTitle(options.getTitle()) .setContentTitle(options.getTitle())
...@@ -132,7 +128,6 @@ public class Builder { ...@@ -132,7 +128,6 @@ public class Builder {
.setLargeIcon(options.getIconBitmap()) .setLargeIcon(options.getIconBitmap())
.setAutoCancel(options.isAutoClear()) .setAutoCancel(options.isAutoClear())
.setOngoing(options.isOngoing()) .setOngoing(options.isOngoing())
.setStyle(style)
.setLights(options.getLedColor(), 500, 500); .setLights(options.getLedColor(), 500, 500);
if (sound != null) { if (sound != null) {
......
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