Commit 24e8e474 authored by Dmitry's avatar Dmitry Committed by GitHub

Update SendNotificationTask.java

fixed sub_text displaying for android when picture has specified. tested on android 5 API 21 emulator
parent e00b2577
...@@ -167,9 +167,8 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> { ...@@ -167,9 +167,8 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> {
bigPicture.bigPicture(pictureResIdBitmap); bigPicture.bigPicture(pictureResIdBitmap);
} }
} }
bigPicture.setBigContentTitle(title); // setBigContentTitle and setSummaryText overrides current title with body and subtext
bigPicture.setSummaryText(body); // that cause to display duplicated body in subtext when picture has specified
notification.setStyle(bigPicture); notification.setStyle(bigPicture);
} }
......
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