@Override protected void onPostExecute(Void result) { super.onPostExecute(result); context.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); if (yibo.isAutoScreenOrientation()) { context.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER); } else { context.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); } context.updateContentView(null); if (!NetUtil.isConnect(context)) { showNetSettingsDialog(); } if (GlobalVars.IS_MOBILE_NET_UPDATE_VERSION) { MobclickAgent.setUpdateOnlyWifi(false); } if (yibo.isCheckNewVersionOnStartup()) { // 检查更新 MobclickAgent.update(context); } // 清除缓存 StatusesCleanTask statusCleanTask = new StatusesCleanTask(context); statusCleanTask.execute(); ImageCacheQuickCleanTask imageCacheTask = new ImageCacheQuickCleanTask(context); imageCacheTask.execute(); }
@Override protected void onPreExecute() { super.onPreExecute(); context.getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); context.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); context.setContentView(R.layout.splash); }