Skip to content

Commit

Permalink
Android: Fix Checking Storage Permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed May 13, 2024
1 parent 0fa19b5 commit 893dcd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 0 additions & 2 deletions android/src/AndroidInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved)

JoystickAndroid::setNativeMethods();

AndroidInterface::checkStoragePermissions();

QNativeInterface::QAndroidApplication::hideSplashScreen(333);

return JNI_VERSION_1_6;
Expand Down
8 changes: 8 additions & 0 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
#include "RunGuard.h"
#endif

#ifdef Q_OS_ANDROID
#include "AndroidInterface.h"
#endif

#ifdef QT_DEBUG

#include "CmdLineOptParser.h"
Expand Down Expand Up @@ -208,6 +212,10 @@ int main(int argc, char *argv[])
} else
#endif
{
#ifdef Q_OS_ANDROID
AndroidInterface::checkStoragePermissions();
#endif

exitCode = app.exec();
}

Expand Down

0 comments on commit 893dcd9

Please sign in to comment.