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

Commit e91551d5 authored by Matt Pietal's avatar Matt Pietal
Browse files

Media - Fix sysui crash on media image load

Apps may throw various RuntimeExceptions when requesting a bitmap load
over binder. Catch these so sysui doesn't crash loop.

Fixes: 166647431
Test: use DoubleTwist app
Change-Id: I7918768559afd3cc6c2f77922e1679d09859337d
(cherry picked from commit 5009abe8)
parent 5141d726
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -481,7 +481,10 @@ class MediaDataManager(
                decoder, info, source -> decoder.isMutableRequired = true
            }
        } catch (e: IOException) {
            e.printStackTrace()
            Log.e(TAG, "Unable to load bitmap", e)
            null
        } catch (e: RuntimeException) {
            Log.e(TAG, "Unable to load bitmap", e)
            null
        }
    }