Skip to content

Commit

Permalink
Fix for Android < 6 perminssions
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Albertini committed Mar 3, 2017
1 parent 1a4d6a6 commit 12f82ed
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/android/io/anyline/cordova/AnylinePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ public void run() {
}

private void checkPermission() {
int MyVersion = Build.VERSION.SDK_INT;
if (MyVersion <= Build.VERSION_CODES.LOLLIPOP_MR1) {
startScanning(mAction, mArgs);
}
boolean result = cordova.hasPermission("android.permission.CAMERA");
if (result) {
startScanning(mAction, mArgs);
Expand Down

0 comments on commit 12f82ed

Please sign in to comment.