Browse Source

Show badges for new messages notification only

main
M66B 6 years ago
parent
commit
6bb0d05478
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      .idea/misc.xml
  2. +2
    -0
      app/src/main/java/eu/faircode/email/ApplicationEx.java

+ 1
- 1
.idea/misc.xml View File

@ -25,7 +25,7 @@
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">


+ 2
- 0
app/src/main/java/eu/faircode/email/ApplicationEx.java View File

@ -67,6 +67,7 @@ public class ApplicationEx extends Application {
getString(R.string.channel_service),
NotificationManager.IMPORTANCE_MIN);
service.setSound(null, Notification.AUDIO_ATTRIBUTES_DEFAULT);
service.setShowBadge(false);
nm.createNotificationChannel(service);
NotificationChannel notification = new NotificationChannel(
@ -79,6 +80,7 @@ public class ApplicationEx extends Application {
"error",
getString(R.string.channel_error),
NotificationManager.IMPORTANCE_HIGH);
error.setShowBadge(false);
nm.createNotificationChannel(error);
}
}


Loading…
Cancel
Save