Skip to content

Commit

Permalink
Make react-native-navigation compile again (Android, reactNative < 63) (
Browse files Browse the repository at this point in the history
#7112)

Broken by #7059. Resolves #7098.
  • Loading branch information
ejain authored May 9, 2021
1 parent 6f7c2d9 commit 662b9d4
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public void onActivityDestroyed(NavigationActivity activity) {
initializer.onActivityDestroyed(activity);
}

public boolean onKeyUp(final int keyCode) {
return jsDevReloadHandler.onKeyUp(keyCode);
public boolean onKeyUp(Activity activity, int keyCode) {
return jsDevReloadHandler.onKeyUp(activity, keyCode);
}

public void onBackPressed() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public void onActivityDestroyed(NavigationActivity activity) {
initializer.onActivityDestroyed(activity);
}

public boolean onKeyUp(final int keyCode) {
return jsDevReloadHandler.onKeyUp(keyCode);
public boolean onKeyUp(Activity activity, int keyCode) {
return jsDevReloadHandler.onKeyUp(activity, keyCode);
}

public void onBackPressed() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public void onActivityDestroyed(NavigationActivity activity) {
initializer.onActivityDestroyed(activity);
}

public boolean onKeyUp(final int keyCode) {
return jsDevReloadHandler.onKeyUp(keyCode);
public boolean onKeyUp(Activity activity, int keyCode) {
return jsDevReloadHandler.onKeyUp(activity, keyCode);
}

public void onBackPressed() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public void onActivityDestroyed(NavigationActivity activity) {
initializer.onActivityDestroyed(activity);
}

public boolean onKeyUp(final int keyCode) {
return jsDevReloadHandler.onKeyUp(keyCode);
public boolean onKeyUp(Activity activity, int keyCode) {
return jsDevReloadHandler.onKeyUp(activity, keyCode);
}

public void onBackPressed() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public void onActivityDestroyed(NavigationActivity activity) {
initializer.onActivityDestroyed(activity);
}

public boolean onKeyUp(final int keyCode) {
return jsDevReloadHandler.onKeyUp(keyCode);
public boolean onKeyUp(Activity activity, int keyCode) {
return jsDevReloadHandler.onKeyUp(activity, keyCode);
}

public void onBackPressed() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public void onActivityDestroyed(NavigationActivity activity) {
initializer.onActivityDestroyed(activity);
}

public boolean onKeyUp(final int keyCode) {
return jsDevReloadHandler.onKeyUp(keyCode);
public boolean onKeyUp(Activity activity, final int keyCode) {
return jsDevReloadHandler.onKeyUp(activity, keyCode);
}

public void onBackPressed() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public void onActivityDestroyed(NavigationActivity activity) {
initializer.onActivityDestroyed(activity);
}

public boolean onKeyUp(final int keyCode) {
return jsDevReloadHandler.onKeyUp(keyCode);
public boolean onKeyUp(Activity activity, int keyCode) {
return jsDevReloadHandler.onKeyUp(activity, keyCode);
}

public void onBackPressed() {
Expand Down

0 comments on commit 662b9d4

Please sign in to comment.