Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0fc481c authored by narinder Rana's avatar narinder Rana
Browse files

handle the crash using catch

parent a786528e
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -170,6 +170,7 @@ public class FileOperationService extends Service implements Job.Listener {
    }

    private void setUpNotificationChannel() {
        try{
            if (features.isNotificationChannelEnabled()) {
                NotificationChannel channel = new NotificationChannel(
                        NOTIFICATION_CHANNEL_ID,
@@ -177,6 +178,9 @@ public class FileOperationService extends Service implements Job.Listener {
                        NotificationManager.IMPORTANCE_LOW);
                notificationManager.createNotificationChannel(channel);
            }
        }catch (Exception ex){
            Log.w(TAG, "Notification exception : ", ex);
        }
    }

    @Override