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

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

Merge branch '5218-q-crashes' into 'v1-q'

5218 q crashes

See merge request !30
parents a786528e f3982b8e
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ public class FileOperationService extends Service implements Job.Listener {
    // TODO: Move it to a shared file when more operations are implemented.
    public static final int FAILURE_COPY = 1;

    static final String NOTIFICATION_CHANNEL_ID = "channel_id";
    static final String NOTIFICATION_CHANNEL_ID = "file_service_channel_id";

    private static final int POOL_SIZE = 2;  // "pool size", not *max* "pool size".

@@ -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