Loading src/com/android/documentsui/services/FileOperationService.java +11 −7 Original line number Diff line number Diff line Loading @@ -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". Loading Loading @@ -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, Loading @@ -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 Loading Loading
src/com/android/documentsui/services/FileOperationService.java +11 −7 Original line number Diff line number Diff line Loading @@ -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". Loading Loading @@ -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, Loading @@ -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 Loading