Skip to content

Commit 56d25b8

Browse files
committed
fix compile error
1 parent ecbed8d commit 56d25b8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/android/com/emj365/plugins/AudioRecorderAPI.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,17 @@
1616
import java.io.File;
1717
import java.io.IOException;
1818

19+
import org.apache.cordova.CordovaInterface;
20+
import org.apache.cordova.LOG;
21+
import android.content.pm.PackageManager;
22+
1923
public class AudioRecorderAPI extends CordovaPlugin {
2024

2125
private MediaRecorder myRecorder;
2226
private String outputFile;
2327
private CountDownTimer countDowntimer;
24-
28+
private CallbackContext callbackContext;
29+
private static final String LOG_TAG = "CordovaPermissionHelper";
2530

2631
public void onRequestPermissionResult(int requestCode, String[] permissions,
2732
int[] grantResults) throws JSONException
@@ -125,6 +130,7 @@ public boolean hasPermission(CordovaPlugin plugin, String permission) {
125130

126131
@Override
127132
public boolean execute(String action, JSONArray args, final CallbackContext callbackContext) throws JSONException {
133+
this.callbackContext = callbackContext;
128134
Context context = cordova.getActivity().getApplicationContext();
129135
Integer seconds;
130136
if (args.length() >= 1) {

0 commit comments

Comments
 (0)