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

Commit d3bbcfae authored by Guojing Yuan's avatar Guojing Yuan Committed by Android (Google) Code Review
Browse files

Merge "[CDM] Disk IO must be run on a separate thread." into main

parents 8dd5e428 e5084d86
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -109,6 +109,8 @@ import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@SuppressLint("LongLogTag")
public class CompanionDeviceManagerService extends SystemService {
@@ -226,7 +228,8 @@ public class CompanionDeviceManagerService extends SystemService {
        if (associations.isEmpty()) return;

        mCompanionExemptionProcessor.updateAtm(userId, associations);
        mCompanionExemptionProcessor.updateAutoRevokeExemptions();
        ExecutorService executor = Executors.newSingleThreadExecutor();
        executor.execute(mCompanionExemptionProcessor::updateAutoRevokeExemptions);
    }

    @Override