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

Commit 8d11f8e0 authored by Yi Kong's avatar Yi Kong
Browse files

profcollect: Register observers in a background thread

Test: presubmit
Bug: 223254054
Change-Id: I24af51326dfe9f69c0ee146387ccabfc9239e7c1
parent e1c9ad94
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -235,8 +235,11 @@ public final class ProfcollectForwardingService extends SystemService {

    // Event observers
    private void registerObservers() {
        BackgroundThread.get().getThreadHandler().post(
                () -> {
                    registerAppLaunchObserver();
                    registerOTAObserver();
                });
    }

    private final AppLaunchObserver mAppLaunchObserver = new AppLaunchObserver();