Fix timing issue on the second or later Service.startForeground().
Remove the 10 seconds latency check on the second or later Service.startForeground() before it can call setFgsRestrictionLocked(). Bug: 200297438 Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java Change-Id: Ifc56e8d318beca5e3b3f9401ffa005bac864a19d
Loading
Please register or sign in to comment