/**
* Called by the {@link android.app.Activity#onPostCreate(Bundle)} to update
* the state of the container screen.
*/
public void syncScreenState() {
int screenOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
int navigationBarColor = -1;
if (currentFragment instanceof FlowrFragment) {
screenOrientation = ((FlowrFragment) currentFragment).getScreenOrientation();
navigationBarColor = ((FlowrFragment) currentFragment).getNavigationBarColor();
}
if (screen != null) {
screen.onCurrentFragmentChanged(getCurrentFragment());
screen.setScreenOrientation(screenOrientation);
screen.setNavigationBarColor(navigationBarColor);
}
syncToolbarState();
syncDrawerState();
}
Flowr.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:flowr
作者:
评论列表
文章目录