mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 01:37:28 +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)
|
.setContentIntent(pendingIntent)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
try {
|
||||||
NotificationManagerCompat.from(context)
|
NotificationManagerCompat.from(context)
|
||||||
.notify(NotificationIds.USER_NOTIFICATION_MIGRATION, notification);
|
.notify(NotificationIds.USER_NOTIFICATION_MIGRATION, notification);
|
||||||
|
} catch (Throwable t) {
|
||||||
|
Log.w(TAG, "Failed to notify!", t);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user