mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Be extra safe when posting a notification during a migration.
This commit is contained in:
@@ -110,8 +110,12 @@ public class UserNotificationMigrationJob extends MigrationJob {
|
||||
.setContentIntent(pendingIntent)
|
||||
.build();
|
||||
|
||||
NotificationManagerCompat.from(context)
|
||||
.notify(NotificationIds.USER_NOTIFICATION_MIGRATION, notification);
|
||||
try {
|
||||
NotificationManagerCompat.from(context)
|
||||
.notify(NotificationIds.USER_NOTIFICATION_MIGRATION, notification);
|
||||
} catch (Throwable t) {
|
||||
Log.w(TAG, "Failed to notify!", t);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user