@Override protected void onResume() { if (action.equals("new")) { if (StringUtil.isEmpty(toText.getText().toString())) { toText.requestFocus(); } else { titleText.requestFocus(); } } else { bodyText.requestFocus(); } if (uploadTask != null) { FileUploadTask temp = uploadTask; uploadTask = null; if (ActivityUtil.isGreaterThan_2_3_3()) { RunParallel(temp); } else { temp.execute(); } } if (PhoneConfiguration.getInstance().fullscreen) { ActivityUtil.getInstance().setFullScreen(v); } super.onResume(); }
@Override protected void onResume() { load(); if (PhoneConfiguration.getInstance().fullscreen) { ActivityUtil.getInstance().setFullScreen(wv); } super.onResume(); }
@Override protected void onResume() { int orentation = ThemeManager.getInstance().screenOrentation; if (orentation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE || orentation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) { setRequestedOrientation(orentation); } else { setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); } super.onResume(); }
@Override protected void onResume() { int orentation = ThemeManager.getInstance().screenOrentation; if (orentation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE || orentation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) { setRequestedOrientation(orentation); } else { setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); } if (asynTask != null) { asynTask.cancel(true); asynTask = null; } long now = System.currentTimeMillis(); PhoneConfiguration config = PhoneConfiguration.getInstance(); if (now - config.lastMessageCheck > 60 * 1000 && config.notification) { Log.d(TAG, "start to check Reply Notification"); asynTask = new CheckReplyNotificationTask(this); asynTask.execute(config.getCookie()); } super.onResume(); }