diff --git a/android/src/org/libsdl/app/SDLActivity.java b/android/src/org/libsdl/app/SDLActivity.java
index 9119473f534fd698aa83970175ab9bd58f43cbd1..57f931e356934049995e79404f0537a88dcb0c82 100644 (file)
import java.io.InputStream;
import java.util.Arrays;
import java.lang.reflect.Method;
import java.io.InputStream;
import java.util.Arrays;
import java.lang.reflect.Method;
-import java.util.Objects;
import android.app.*;
import android.content.*;
import android.app.*;
import android.content.*;
{
int orientation = -1;
{
int orientation = -1;
- if (!Objects.equals(hint, "")) {
+ if (hint != null && !hint.equals("")) {
if (hint.contains("LandscapeRight") && hint.contains("LandscapeLeft")) {
orientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE;
} else if (hint.contains("LandscapeRight")) {
if (hint.contains("LandscapeRight") && hint.contains("LandscapeLeft")) {
orientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE;
} else if (hint.contains("LandscapeRight")) {