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

Commit 927bc7d7 authored by Romain Guy's avatar Romain Guy
Browse files

Prevent a crash on devices that remove non-core services

Change-Id: Id7fcf0f1f7b6ddec8e860b3c4cde98aec63d04b6
parent 1212c9da
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1809,6 +1809,8 @@ public abstract class HardwareRenderer {
        @Override
        void initAtlas() {
            IBinder binder = ServiceManager.getService("assetatlas");
            if (binder == null) return;

            IAssetAtlas atlas = IAssetAtlas.Stub.asInterface(binder);
            try {
                GraphicBuffer buffer = atlas.getBuffer();