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

Commit 395d1546 authored by Thecrazyskull's avatar Thecrazyskull Committed by Arne Coucheron
Browse files

Prevent crash

We can only set SystemUI visibility from the UI thread

Change-Id: I1ecf1fcddef037da5ecd2e0f53989da82bdf7ef0
parent 8cb18010
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -520,7 +520,10 @@ public class Launcher extends BaseActivity
        }

        if (newSystemUiFlags != oldSystemUiFlags) {
            getWindow().getDecorView().setSystemUiVisibility(newSystemUiFlags);
            final int systemUiFlags = newSystemUiFlags;
            runOnUiThread(() -> {
                getWindow().getDecorView().setSystemUiVisibility(systemUiFlags);
            });
        }
    }