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

Commit f9e62b71 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Schedule camera stats collectiom job at system server boot complete

During onStart(), the job scheduler may not be available yet. Get the
job scheduler at the system server boot completion instead.

Test: Boot, and check logcat for SystemServiceRegistry error
Bug: 184195719
Change-Id: Iaffcf36794c78d13e9d8a66f74c37fc4a54280ac
parent 578160ba
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -528,9 +528,14 @@ public class CameraServiceProxy extends SystemService
        } catch (RemoteException e) {
            Log.e(TAG, "Failed to register task stack listener!");
        }
    }

    @Override
    public void onBootPhase(int phase) {
        if (phase == PHASE_BOOT_COMPLETED) {
            CameraStatsJobService.schedule(mContext);
        }
    }

    @Override
    public void onUserStarting(@NonNull TargetUser user) {