|
@@ -1,13 +1,13 @@
|
1
|
1
|
package com.reactnativenavigation;
|
2
|
2
|
|
3
|
|
-import android.os.Bundle;
|
4
|
|
-import android.support.annotation.Nullable;
|
5
|
|
-import android.support.v7.app.AppCompatActivity;
|
6
|
|
-import android.view.KeyEvent;
|
7
|
|
-import android.widget.Toast;
|
|
3
|
+import android.os.*;
|
|
4
|
+import android.support.annotation.*;
|
|
5
|
+import android.support.v7.app.*;
|
|
6
|
+import android.view.*;
|
|
7
|
+import android.widget.*;
|
8
|
8
|
|
9
|
|
-import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
|
10
|
|
-import com.reactnativenavigation.viewcontrollers.Navigator;
|
|
9
|
+import com.facebook.react.modules.core.*;
|
|
10
|
+import com.reactnativenavigation.viewcontrollers.*;
|
11
|
11
|
|
12
|
12
|
public class NavigationActivity extends AppCompatActivity implements DefaultHardwareBackBtnHandler {
|
13
|
13
|
private Navigator navigator;
|
|
@@ -41,14 +41,14 @@ public class NavigationActivity extends AppCompatActivity implements DefaultHard
|
41
|
41
|
|
42
|
42
|
@Override
|
43
|
43
|
public void invokeDefaultOnBackPressed() {
|
44
|
|
- if (!navigator.handleBack()) {
|
45
|
|
- super.onBackPressed();
|
46
|
|
- }
|
|
44
|
+ if (!navigator.handleBack()) {
|
|
45
|
+ super.onBackPressed();
|
|
46
|
+ }
|
47
|
47
|
}
|
48
|
48
|
|
49
|
49
|
@Override
|
50
|
50
|
public void onBackPressed() {
|
51
|
|
- app().getReactGateway().onBackPressed();
|
|
51
|
+ app().getReactGateway().onBackPressed();
|
52
|
52
|
}
|
53
|
53
|
|
54
|
54
|
@Override
|