@Override
 protected void onUserLeaveHint() {
   super.onUserLeaveHint();
   for (TabInfo tab : mTabs) {
     if (tab.fragment != null) {
       tab.fragment.onUserLeaveHint();
     }
   }
 }
Exemplo n.º 2
0
  @Override
  /**
   * When the activity is about to go into the background as a result of user choice, this method
   * fires the javascript 'userleavehint' event.
   */
  protected void onUserLeaveHint() {
    Log.d(TAG, "Activity " + this + " onUserLeaveHint", Log.DEBUG_MODE);

    if (getTiApp().isRestartPending()) {
      if (!isFinishing()) {
        finish();
      }
      return;
    }

    if (activityProxy != null) {
      activityProxy.fireSyncEvent(TiC.EVENT_USER_LEAVE_HINT, null);
    }

    super.onUserLeaveHint();
  }
Exemplo n.º 3
0
 @Override
 public void onUserLeaveHint() {
   super.onUserLeaveHint();
   Log.e("onUserLeaveHint call", "onUserLeaveHint call");
 }