Skip to content
Snippets Groups Projects
Commit 4c0a061c authored by Abhishek Gadewar's avatar Abhishek Gadewar
Browse files

Call jobFinished after ProfcollectBGJobService processing completes


Summary:Add a call to `jobFinished` after processing completes to ensure that the system is notified
that the work has been completed.

Test: Run `adb shell cmd jobscheduler run -f android 260817` multiple times in succession. Verify that processing is now triggered each time.

Tags:
Change-Id: Ifa6fcd8b2fdcea4904677bcae4a1cb36cac33154
Signed-off-by: default avatarAbhishek Gadewar <abhishekgadewar@meta.com>
parent e8245d3c
No related branches found
No related tags found
No related merge requests found
......@@ -243,6 +243,7 @@ public final class ProfcollectForwardingService extends SystemService {
return;
}
sSelfService.mIProfcollect.process();
jobFinished(params, false);
} catch (RemoteException e) {
Log.e(LOG_TAG, "Failed to process profiles in background: "
+ e.getMessage());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment