From 5ed8b4083e4007116ebd88d9177f303198e6104c Mon Sep 17 00:00:00 2001 From: hss01248 Date: Wed, 18 Aug 2021 09:33:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=A4=9C=E9=97=B4=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F,=E5=8F=AF=E5=85=A8=E5=B1=80=E5=92=8C=E5=8D=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/hss01248/pagestate/PageStateManager.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pagestate/src/main/java/com/hss01248/pagestate/PageStateManager.java b/pagestate/src/main/java/com/hss01248/pagestate/PageStateManager.java index d25da25..c47d6d5 100644 --- a/pagestate/src/main/java/com/hss01248/pagestate/PageStateManager.java +++ b/pagestate/src/main/java/com/hss01248/pagestate/PageStateManager.java @@ -16,6 +16,12 @@ public class PageStateManager implements IViewState{ static int BASE_RETRY_LAYOUT_ID = R.layout.pager_error; static int BASE_EMPTY_LAYOUT_ID = R.layout.pager_empty; + public static void setGlobalDarkMode(boolean isDarkMode) { + PageStateManager.isDarkMode = isDarkMode; + } + + static boolean isDarkMode = false; + public StatefulFrameLayout getStatefulLayout() { return mLoadingAndRetryLayout; }