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

Commit 55cdedff 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: c1e9c53f am: 2d2bd5fc

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

Change-Id: I80db8be5a19d465f96ba55f35226ea8d468dac59
parents 4e5703d5 2d2bd5fc
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() {