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

Commit a86eb7e9 authored by Garfield Tan's avatar Garfield Tan Committed by android-build-merger
Browse files

Merge "Don't tear down notification channels." into oc-dev

am: 3799fb50

Change-Id: I010a1ceb8f5f25071fead7d9d8b37ea708446c60
parents e4300571 3799fb50
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -189,8 +189,6 @@ public class FileOperationService extends Service implements Job.Listener {
            Log.w(TAG, "Shutting down, but executor reports running jobs: " + unfinished);
        }

        tearDownNotificationChannel();

        executor = null;
        deletionExecutor = null;
        handler = null;
@@ -198,12 +196,6 @@ public class FileOperationService extends Service implements Job.Listener {
        if (DEBUG) Log.d(TAG, "Destroyed.");
    }

    private void tearDownNotificationChannel() {
        if (features.isNotificationChannelEnabled()) {
            notificationManager.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID);
        }
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int serviceId) {
        // TODO: Ensure we're not being called with retry or redeliver.