Skip to content

Commit

Permalink
支持夜间模式,可全局和单页面配置
Browse files Browse the repository at this point in the history
  • Loading branch information
hss01248 committed Aug 18, 2021
1 parent a086d5b commit 5ed8b40
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5ed8b40

Please sign in to comment.