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

Commit c1e9c53f authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

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

parents e7adf14e da9d0e66
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() {