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; }