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

Commit da5065e9 authored by /e/ robot's avatar /e/ robot
Browse files

Merge remote-tracking branch 'origin/lineage-20.0' into v1-t

parents 1475b1b0 5e90615f
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
/*
 * Copyright (C) 2021 The LineageOS Project
 * Copyright (C) 2021-2023 The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -17,10 +17,13 @@ package org.lineageos.recorder.task;

import android.content.ContentResolver;
import android.net.Uri;
import android.util.Log;

import androidx.annotation.NonNull;

public final class DeleteRecordingTask implements Runnable {
    private static final String TAG = "DeleteRecordingTask";

    @NonNull
    private final ContentResolver cr;
    @NonNull
@@ -33,6 +36,10 @@ public final class DeleteRecordingTask implements Runnable {

    @Override
    public void run() {
        try {
            cr.delete(uri, null, null);
        } catch (SecurityException e) {
            Log.e(TAG, "Failed to delete recording", e);
        }
    }
}