summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorSahana Rao <sahanas@google.com>2020-02-10 13:59:42 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-02-12 17:35:03 +0000
commit9dc385b25ad07031bd245bf79ed21c6709069219 (patch)
treea8651a04fa59458ef2241bbc2e5dc18ba806a45d /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent1e12ddfe20f6445d1373109fbe53405b57512569 (diff)
Fail silently on MediaScannerConnection#onScanCompleted
MediaScannerConnection#onScanCompleted callback runs on background thread. Exception on the callback kills the process. To avoid this, ignore exceptions from callback for apps targeting Q or lower. This change fixes change in behavior from refactoring Ie959daa7576214024150faf84b44cdba00119257 where errors on the callback was handled on a binder thread that doesn't cause process crash. Test: atest frameworks/base/media/ directory Test: "in.mohalla.sharechat" app doesn't crash while sharing video. Test: "com.vkontakte.android" app doesn't crash while sending a photo. Bug: 147998630 Bug: 148925602 Change-Id: I5bd5f9fc22ac274da4d09c55dd639a6cca08be9b (cherry picked from commit 364d250fb72595fa3b927350cb38da6cac824624)
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions