89 lines
2.8 KiB
Java
89 lines
2.8 KiB
Java
package com.facebook.react;
|
|
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.support.v4.app.FragmentActivity;
|
|
import android.view.KeyEvent;
|
|
import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
|
|
import com.facebook.react.modules.core.PermissionAwareActivity;
|
|
import com.facebook.react.modules.core.PermissionListener;
|
|
|
|
public abstract class ReactFragmentActivity extends FragmentActivity implements DefaultHardwareBackBtnHandler, PermissionAwareActivity {
|
|
private final ReactActivityDelegate mDelegate = createReactActivityDelegate();
|
|
|
|
protected ReactActivityDelegate createReactActivityDelegate() {
|
|
return new ReactActivityDelegate(this, getMainComponentName());
|
|
}
|
|
|
|
protected String getMainComponentName() {
|
|
return null;
|
|
}
|
|
|
|
protected final ReactInstanceManager getReactInstanceManager() {
|
|
return this.mDelegate.getReactInstanceManager();
|
|
}
|
|
|
|
protected final ReactNativeHost getReactNativeHost() {
|
|
return this.mDelegate.getReactNativeHost();
|
|
}
|
|
|
|
public void invokeDefaultOnBackPressed() {
|
|
super.onBackPressed();
|
|
}
|
|
|
|
protected final void loadApp(String paramString) {
|
|
this.mDelegate.loadApp(paramString);
|
|
}
|
|
|
|
public void onActivityResult(int paramInt1, int paramInt2, Intent paramIntent) {
|
|
this.mDelegate.onActivityResult(paramInt1, paramInt2, paramIntent);
|
|
}
|
|
|
|
public void onBackPressed() {
|
|
if (!this.mDelegate.onBackPressed())
|
|
super.onBackPressed();
|
|
}
|
|
|
|
public void onCreate(Bundle paramBundle) {
|
|
super.onCreate(paramBundle);
|
|
this.mDelegate.onCreate(paramBundle);
|
|
}
|
|
|
|
public void onDestroy() {
|
|
super.onDestroy();
|
|
this.mDelegate.onDestroy();
|
|
}
|
|
|
|
public boolean onKeyUp(int paramInt, KeyEvent paramKeyEvent) {
|
|
return (this.mDelegate.onKeyUp(paramInt, paramKeyEvent) || super.onKeyUp(paramInt, paramKeyEvent));
|
|
}
|
|
|
|
public void onNewIntent(Intent paramIntent) {
|
|
if (!this.mDelegate.onNewIntent(paramIntent))
|
|
super.onNewIntent(paramIntent);
|
|
}
|
|
|
|
public void onPause() {
|
|
super.onPause();
|
|
this.mDelegate.onPause();
|
|
}
|
|
|
|
public void onRequestPermissionsResult(int paramInt, String[] paramArrayOfString, int[] paramArrayOfint) {
|
|
this.mDelegate.onRequestPermissionsResult(paramInt, paramArrayOfString, paramArrayOfint);
|
|
}
|
|
|
|
public void onResume() {
|
|
super.onResume();
|
|
this.mDelegate.onResume();
|
|
}
|
|
|
|
public void requestPermissions(String[] paramArrayOfString, int paramInt, PermissionListener paramPermissionListener) {
|
|
this.mDelegate.requestPermissions(paramArrayOfString, paramInt, paramPermissionListener);
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: C:\Users\august\Desktop\tik\df_rn_kit\classes.jar.jar!\com\facebook\react\ReactFragmentActivity.class
|
|
* Java compiler version: 6 (50.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |