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

Commit c27fcd36 authored by Yi Kong's avatar Yi Kong Committed by Automerger Merge Worker
Browse files

Merge "profcollect: check hardware capability on a background thread" am:...

Merge "profcollect: check hardware capability on a background thread" am: c1e9c53f am: 2d2bd5fc am: 55cdedff

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1894823

Change-Id: I5c1962e2fab36269fa1cfe70725754313f215159
parents b2f4c0a1 55cdedff
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -91,11 +91,13 @@ public final class ProfcollectForwardingService extends SystemService {
            if (mIProfcollect == null) {
                return;
            }
            BackgroundThread.get().getThreadHandler().post(() -> {
                if (serviceHasSupportedTraceProvider()) {
                    registerObservers();
            }
                    ProfcollectBGJobService.schedule(getContext());
                }
            });
        }
    }

    private boolean serviceHasSupportedTraceProvider() {