示例#1
0
 public void onActivityResume() {
   checkSceneRotation(getCurrentThemeInfo());
   clearStartActivityIntent();
   for (TimeChangeCallBack callBack : mTimeCallBacks) {
     if (callBack != null) {
       callBack.onTimeChanged();
     }
   }
 }
示例#2
0
 public void changeTheme(ThemeInfo themeInfo) {
   if (mCurrentThemeInfo != null && mModelObjectsManager != null) {
     mCurrentThemeInfo = themeInfo;
     mCurrentThemeInfo.initFromXML(getContext());
     HomeUtils.staticUsingTheme(getContext(), themeInfo.mThemeName);
     SESceneManager.getInstance().removeMessage(HomeScene.MSG_TYPE_UPDATE_SCENE);
     SESceneManager.getInstance().handleMessage(HomeScene.MSG_TYPE_UPDATE_SCENE, themeInfo);
     checkSceneRotation(themeInfo);
   }
 }