Merge "profcollect: check hardware capability on a background thread"
This commit is contained in:
@@ -91,10 +91,12 @@ public final class ProfcollectForwardingService extends SystemService {
|
||||
if (mIProfcollect == null) {
|
||||
return;
|
||||
}
|
||||
if (serviceHasSupportedTraceProvider()) {
|
||||
registerObservers();
|
||||
}
|
||||
ProfcollectBGJobService.schedule(getContext());
|
||||
BackgroundThread.get().getThreadHandler().post(() -> {
|
||||
if (serviceHasSupportedTraceProvider()) {
|
||||
registerObservers();
|
||||
ProfcollectBGJobService.schedule(getContext());
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user