From c04acecb234ac26f4ce52c8f6f0b01bf9df6dde2 Mon Sep 17 00:00:00 2001 From: Pierrot Date: Tue, 9 Apr 2019 06:54:57 +0200 Subject: [PATCH] Workaround for crash --- .../pierrox/lightning_launcher/activities/Dashboard.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/llx/app/src/main/java/net/pierrox/lightning_launcher/activities/Dashboard.java b/app/llx/app/src/main/java/net/pierrox/lightning_launcher/activities/Dashboard.java index 4581f38..c057182 100644 --- a/app/llx/app/src/main/java/net/pierrox/lightning_launcher/activities/Dashboard.java +++ b/app/llx/app/src/main/java/net/pierrox/lightning_launcher/activities/Dashboard.java @@ -7366,7 +7366,9 @@ public class Dashboard extends ResourceWrapperActivity implements OnLongClickLis @Override public void onSystemBarsSizeChanged() { - configureSystemBarsPadding(mScreen.getCurrentRootPage().config); - } + Page page = mScreen.getCurrentRootPage(); + if(page != null) { + configureSystemBarsPadding(page.config); + } } } }