|
@@ -15,7 +15,6 @@ import android.widget.EditText;
|
15
|
15
|
import android.widget.Toast;
|
16
|
16
|
|
17
|
17
|
import com.facebook.common.logging.FLog;
|
18
|
|
-import com.facebook.react.LifecycleState;
|
19
|
18
|
import com.facebook.react.ReactInstanceManager;
|
20
|
19
|
import com.facebook.react.ReactPackage;
|
21
|
20
|
import com.facebook.react.ReactRootView;
|
|
@@ -45,11 +44,9 @@ public abstract class BaseReactActivity extends AppCompatActivity implements Def
|
45
|
44
|
private static final String TAG = "BaseReactActivity";
|
46
|
45
|
private static final String REDBOX_PERMISSION_MESSAGE =
|
47
|
46
|
"Overlay permissions needs to be granted in order for react native apps to run in dev mode";
|
48
|
|
- private static final String EVENT_TOOLBAR_BUTTON_CLICKED = "OnToolbarButtonClicked";
|
49
|
47
|
|
50
|
48
|
@Nullable
|
51
|
49
|
protected ReactInstanceManager mReactInstanceManager;
|
52
|
|
- private LifecycleState mLifecycleState = LifecycleState.BEFORE_RESUME;
|
53
|
50
|
private boolean mDoRefresh = false;
|
54
|
51
|
private Menu mMenu;
|
55
|
52
|
protected RnnToolBar mToolbar;
|
|
@@ -177,8 +174,6 @@ public abstract class BaseReactActivity extends AppCompatActivity implements Def
|
177
|
174
|
super.onResume();
|
178
|
175
|
ContextProvider.setActivityContext(this);
|
179
|
176
|
|
180
|
|
- mLifecycleState = LifecycleState.RESUMED;
|
181
|
|
-
|
182
|
177
|
if (mReactInstanceManager != null) {
|
183
|
178
|
mReactInstanceManager.onResume(this, this);
|
184
|
179
|
}
|
|
@@ -188,8 +183,6 @@ public abstract class BaseReactActivity extends AppCompatActivity implements Def
|
188
|
183
|
protected void onPause() {
|
189
|
184
|
super.onPause();
|
190
|
185
|
|
191
|
|
- mLifecycleState = LifecycleState.BEFORE_RESUME;
|
192
|
|
-
|
193
|
186
|
if (mReactInstanceManager != null) {
|
194
|
187
|
mReactInstanceManager.onPause();
|
195
|
188
|
}
|