summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorFyodor Kupolov <fkupolov@google.com>2017-05-05 14:07:50 -0700
committerFyodor Kupolov <fkupolov@google.com>2017-05-05 14:12:29 -0700
commit1406fb72ec05653ec7968a43603759c09702804b (patch)
treed169db866f1af80c0611ea7b270c0c9e22326ec5 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentbd886e52b8e1f0f9592fd9390155e9f01bfc16f8 (diff)
Prevent crashes when user is stopping
Added defensive checks to prevent sporadic crashes due to various race conditions when user is stopped: * onPackageBroadcastReceived - moved the check inside the synchronized block. This guarantees that onUserStopped (that also grabs mLock) is not yet called and we can proceed. * stopListening - Since it is invoked before onUserStopped callback, we can call ensureGroupStateLoadedLocked(userId, false). The state will be subsequently cleaned up in the onUserStopped. Test: manual user switching + SecondaryUserContentResolverTest and ManagedUserContentResolverTest Fixes: 37472670 Fixes: 36890589 Change-Id: I44d0a0c004e9c3e6cfb37a24cb8a5b6f20a42f13
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions