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

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

CameraServiceProxy: Double retry times when notifying cameraserver

Current retry for notifying cameraserver is 20ms * 30 = 600ms. Double it
to 1.2 seconds to give cameraserver enough time to start up.

Test: Build
Bug: 140414594
Change-Id: I5726212d81bb595a99c9137e073f0da022d0779c
parent 15348e69
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ public class CameraServiceProxy extends SystemService
    private static final int MSG_SWITCH_USER = 1;

    private static final int RETRY_DELAY_TIME = 20; //ms
    private static final int RETRY_TIMES = 30;
    private static final int RETRY_TIMES = 60;

    // Maximum entries to keep in usage history before dumping out
    private static final int MAX_USAGE_HISTORY = 100;