示例#1
0
  /** Restart the receiving, when we are back on line. */
  @Override
  protected void onResume() {
    super.onResume();

    this.setRequestedOrientation(Preferences.getRequestedScreenOrientation(this));

    if (this.mNeedDataState) {
      this.onResumeForDataStateChangedListener();
    }

    this.mMenuVoiceEnabled = Preferences.getMenuVoiceEnabled(this);
  }
示例#2
0
 /** Called when the activity is first created. */
 protected void onCreate(final Bundle icicle, final boolean aNeedDataState) {
   super.onCreate(icicle);
   this.mMenuVoiceEnabled = Preferences.getMenuVoiceEnabled(this);
   this.mNeedDataState = aNeedDataState;
 }