Loading
Reset pending relaunch count on activity stopped
There are 2 potential cases which could lead to unpaired count.
1. ActivityRelaunchItem is queued by ClientLifecycleManager, so
it is not sent by AR#relaunchActivityLocked, then the count
is always increased even if the later deferred transaction
is failed with RemoteException.
2. System server's binder buffer is full, then the transaction
from client is failed to invoke activityRelaunched to decrease
the count.
This avoids the stale count make ActivityRecord#isSyncFinished
always false.
Bug: 341499017
Flag: EXEMPT bugfix
Test: Hard code to skip calling finishRelaunching.
Change display density or size in Settings.
Loop return to home and launch apps from home.
The worst case is only transition timeout once.
Change-Id: I35230330033f9ce7cf26527b45ef60d2927bc075