Browse Source
Notifications fix for Android Lollipop
pull/24/head
Ezerous
7 years ago
No known key found for this signature in database
GPG Key ID: 262B2954BBA319E3
4 changed files with
6 additions and
7 deletions
-
.gitignore
-
app/src/main/java/gr/thmmy/mthmmy/services/NotificationService.java
-
app/src/main/res/layout/activity_bookmark.xml
|
@ -13,6 +13,7 @@ |
|
|
bin/ |
|
|
bin/ |
|
|
gen/ |
|
|
gen/ |
|
|
out/ |
|
|
out/ |
|
|
|
|
|
output.json |
|
|
|
|
|
|
|
|
# Gradle files |
|
|
# Gradle files |
|
|
.gradle/ |
|
|
.gradle/ |
|
|
|
@ -112,12 +112,9 @@ public class NotificationService extends FirebaseMessagingService { |
|
|
notificationBuilder.setPriority(PRIORITY_MAX); |
|
|
notificationBuilder.setPriority(PRIORITY_MAX); |
|
|
|
|
|
|
|
|
boolean createSummaryNotification = false; |
|
|
boolean createSummaryNotification = false; |
|
|
if(buildVersion >= Build.VERSION_CODES.LOLLIPOP) |
|
|
|
|
|
{ |
|
|
|
|
|
createSummaryNotification = true; |
|
|
|
|
|
if(buildVersion >= Build.VERSION_CODES.M) |
|
|
if(buildVersion >= Build.VERSION_CODES.M) |
|
|
createSummaryNotification = otherNotificationsExist(topicId); |
|
|
createSummaryNotification = otherNotificationsExist(topicId); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
NotificationCompat.Builder summaryNotificationBuilder = null; |
|
|
NotificationCompat.Builder summaryNotificationBuilder = null; |
|
|
if(createSummaryNotification) |
|
|
if(createSummaryNotification) |
|
|
|
@ -30,6 +30,7 @@ |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:gravity="center" |
|
|
android:gravity="center" |
|
|
|
|
|
app:tabMaxWidth="0dp" |
|
|
app:tabGravity="fill" |
|
|
app:tabGravity="fill" |
|
|
app:tabMode="fixed" |
|
|
app:tabMode="fixed" |
|
|
app:tabSelectedTextColor="@color/accent" |
|
|
app:tabSelectedTextColor="@color/accent" |
|
|