Voice Note Beta Feedback fixes.

This commit is contained in:
Alex Hart
2020-10-16 13:14:01 -03:00
committed by GitHub
parent 36da519b26
commit 082d9e852c
9 changed files with 145 additions and 27 deletions

View File

@@ -57,6 +57,7 @@ public class NotificationChannels {
public static final String BACKUPS = "backups_v2";
public static final String LOCKED_STATUS = "locked_status_v2";
public static final String OTHER = "other_v2";
public static final String VOICE_NOTES = "voice_notes";
/**
* Ensures all of the notification channels are created. No harm in repeat calls. Call is safely
@@ -449,6 +450,7 @@ public class NotificationChannels {
NotificationChannel backups = new NotificationChannel(BACKUPS, context.getString(R.string.NotificationChannel_backups), NotificationManager.IMPORTANCE_LOW);
NotificationChannel lockedStatus = new NotificationChannel(LOCKED_STATUS, context.getString(R.string.NotificationChannel_locked_status), NotificationManager.IMPORTANCE_LOW);
NotificationChannel other = new NotificationChannel(OTHER, context.getString(R.string.NotificationChannel_other), NotificationManager.IMPORTANCE_LOW);
NotificationChannel voiceNotes = new NotificationChannel(VOICE_NOTES, context.getString(R.string.NotificationChannel_voice_notes), NotificationManager.IMPORTANCE_LOW);
messages.setGroup(CATEGORY_MESSAGES);
messages.enableVibration(TextSecurePreferences.isNotificationVibrateEnabled(context));
@@ -459,8 +461,9 @@ public class NotificationChannels {
backups.setShowBadge(false);
lockedStatus.setShowBadge(false);
other.setShowBadge(false);
voiceNotes.setShowBadge(false);
notificationManager.createNotificationChannels(Arrays.asList(messages, calls, failures, backups, lockedStatus, other));
notificationManager.createNotificationChannels(Arrays.asList(messages, calls, failures, backups, lockedStatus, other, voiceNotes));
if (BuildConfig.PLAY_STORE_DISABLED) {
NotificationChannel appUpdates = new NotificationChannel(APP_UPDATES, context.getString(R.string.NotificationChannel_app_updates), NotificationManager.IMPORTANCE_HIGH);