Skip to content
Permalink
Browse files
Fixed exception if getManifestEnvironmentVariables() is called withou…
…t a current SDL activity
  • Loading branch information
slouken committed Jun 4, 2020
1 parent ff53521 commit d0947c1483dc29a6629b3b0215331f7ec2725130
Showing with 4 additions and 0 deletions.
  1. +4 −0 android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
@@ -1088,6 +1088,10 @@ public static DisplayMetrics getDisplayDPI() {
*/
public static boolean getManifestEnvironmentVariables() {
try {
if (getContext() == null) {
return false;
}

ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo(getContext().getPackageName(), PackageManager.GET_META_DATA);
Bundle bundle = applicationInfo.metaData;
if (bundle == null) {

0 comments on commit d0947c1

Please sign in to comment.