Skip to content

Commit

Permalink
Android: add missing super-call in onActivityResult()
Browse files Browse the repository at this point in the history
This fixes a problem where an external library (PickImage) doesn't
function correctly.

Also fixes a similar problem in onRequestPermissionsResult().
  • Loading branch information
mortend committed Jul 18, 2022
1 parent dc39a2c commit f1145dd
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,16 @@ public boolean onKeyUp(int keyCode, KeyEvent event)
{
return fuseApp.onKeyUp(keyCode, event);
}

@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
return fuseApp.onKeyDown(keyCode, event);
}

@Override
public void onActivityResult (int arg0, int arg1, android.content.Intent arg2)
{
public void onActivityResult(int arg0, int arg1, android.content.Intent arg2) {
super.onActivityResult(arg0, arg1, arg2);
fuseApp.onActivityResult(arg0, arg1, arg2);
}

Expand Down Expand Up @@ -128,8 +129,8 @@ public void onLowMemory() {
}

@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults)
{
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
fuseApp.onRequestPermissionsResult(requestCode, permissions, grantResults);
}

Expand Down

0 comments on commit f1145dd

Please sign in to comment.