Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #346 from kunder-lab/master
Browse files Browse the repository at this point in the history
Set callbackContext onRestoreStateForActivityResult
  • Loading branch information
EddyVerbruggen committed Dec 3, 2016
2 parents d43964f + 56964e5 commit 1cdbf87
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.content.pm.PackageManager;

Expand Down Expand Up @@ -302,4 +303,13 @@ public void onRequestPermissionResult(int requestCode, String[] permissions,
}
}

/**
* This plugin launches an external Activity when the camera is opened, so we
* need to implement the save/restore API in case the Activity gets killed
* by the OS while it's in the background.
*/
public void onRestoreStateForActivityResult(Bundle state, CallbackContext callbackContext) {
this.callbackContext = callbackContext;
}

}

0 comments on commit 1cdbf87

Please sign in to comment.