Skip to content

Commit

Permalink
updates to redo permissions model
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Moore committed Dec 8, 2017
1 parent 124da00 commit ad9ecf7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion exampleDrawing/addons.make
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ofxARCore
ofxARCore
2 changes: 1 addition & 1 deletion exampleDrawing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ apply plugin: 'com.android.model.application'
model {
android {
// openFrameworks currently only supports compiling against SDK 19
compileSdkVersion = 19
compileSdkVersion = 24
buildToolsVersion = "25.0.3"

defaultConfig.with {
Expand Down
6 changes: 3 additions & 3 deletions src/ofxARCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ ofxARCore::~ofxARCore(){
void ofxARCore::setup(){
_sessionInitialized = false;

ofxAndroidRequestPermission(CAMERA);
// Request camera permissions
ofxAndroidRequestCameraPermission();
if(ofxAndroidCheckCameraPermission()) {
if(ofxAndroidCheckPermission(CAMERA)) {
setupSession();
}

Expand Down Expand Up @@ -148,7 +148,7 @@ void ofxARCore::resumeApp(){

// Check if permissions have been granted, and the session isn't setup yet
if(!_sessionInitialized){
if(ofxAndroidCheckCameraPermission()) {
if(ofxAndroidCheckPermission(CAMERA)) {
setupSession();
}
}
Expand Down

0 comments on commit ad9ecf7

Please sign in to comment.