コード例 #1
1
 @Override
 protected void onNewIntent(Intent intent) {
   super.onNewIntent(intent);
   if (remotePlugin == null) {
     return;
   }
   PluginActivityCallback caller = remotePlugin.getControl();
   if (caller != null) {
     caller.callOnNewIntent(intent);
   }
 }
コード例 #2
0
 @Override
 public View onCreateView(View parent, String name, Context context, AttributeSet attrs) {
   if (remotePlugin == null) {
     return super.onCreateView(parent, name, context, attrs);
   }
   PluginActivityCallback caller = remotePlugin.getControl();
   if (caller != null) {
     return caller.callOnCreateView(parent, name, context, attrs);
   }
   return super.onCreateView(parent, name, context, attrs);
 }
コード例 #3
0
 @Override
 protected void onPostResume() {
   super.onPostResume();
   if (remotePlugin == null) {
     return;
   }
   PluginActivityCallback caller = remotePlugin.getControl();
   if (caller != null) {
     caller.callOnPostResume();
   }
 }
コード例 #4
0
 @Override
 public void onDetachedFromWindow() {
   if (remotePlugin == null) {
     return;
   }
   PluginActivityCallback caller = remotePlugin.getControl();
   if (caller != null) {
     caller.callOnDetachedFromWindow();
   }
   super.onDetachedFromWindow();
 }
コード例 #5
0
 @Override
 public void onConfigurationChanged(Configuration newConfig) {
   super.onConfigurationChanged(newConfig);
   if (remotePlugin == null) {
     return;
   }
   PluginActivityCallback caller = remotePlugin.getControl();
   if (caller != null) {
     caller.callOnConfigurationChanged(newConfig);
   }
 }
コード例 #6
0
 @Override
 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) {
   super.dump(prefix, fd, writer, args);
   if (remotePlugin == null) {
     return;
   }
   PluginActivityCallback caller = remotePlugin.getControl();
   if (caller != null) {
     caller.callDump(prefix, fd, writer, args);
   }
 }
コード例 #7
0
  @Override
  public boolean onKeyDown(int keyCode, KeyEvent event) {
    if (remotePlugin == null) {
      return super.onKeyDown(keyCode, event);
    }
    PluginActivityCallback caller = remotePlugin.getControl();
    if (caller != null) {

      LCallbackManager.callAllOnKeyDown(keyCode, event);
      return caller.callOnKeyDown(keyCode, event);
    }

    return super.onKeyDown(keyCode, event);
  }
コード例 #8
0
  @Override
  protected void onRestart() {
    super.onRestart();
    if (remotePlugin == null) {
      return;
    }

    PluginActivityCallback caller = remotePlugin.getControl();
    if (caller != null) {
      try {
        caller.callOnRestart();
        LCallbackManager.callAllOnRestart();
      } catch (Exception e) {
        processError(e);
      }
    }
  }
コード例 #9
0
  @Override
  public void onBackPressed() {

    if (remotePlugin == null) {
      super.onBackPressed();
    }

    PluginActivityCallback caller = remotePlugin.getControl();
    if (caller != null) {
      try {
        caller.callOnBackPressed();
        LCallbackManager.callAllOnBackPressed();
      } catch (Exception e) {
        processError(e);
      }
    }
  }