mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 12:37:39 +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