Skip to content

Commit

Permalink
Merge pull request #74 from simonfriesenbichler/master
Browse files Browse the repository at this point in the history
android isDeviceSupported change error return value to something usefull
  • Loading branch information
AndreasSchacherbauerWikitude committed Apr 1, 2015
2 parents 736f2dd + a26c6c0 commit d030478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/WikitudePlugin.java
Expand Up @@ -197,9 +197,9 @@ public void run() {
}
int featuresBitMap = convertArFeatures(jsonArray);
if ( (ArchitectView.getSupportedFeaturesForDevice( this.cordova.getActivity() ) & featuresBitMap) == featuresBitMap ) {
callContext.success( action + ": this device is ARchitect-ready" );
callContext.success("This device is supported" );
} else {
callContext.error( action + action + ":Sorry, this device is NOT ARchitect-ready" );
callContext.error("This device is NOT supported" );
}
return true;
}
Expand Down

0 comments on commit d030478

Please sign in to comment.