X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=android%2Fsrc%2Forg%2Flibsdl%2Fapp%2FSDLActivity.java;h=57f931e356934049995e79404f0537a88dcb0c82;hb=c2c92502388d8ac34c0f64c124cad68d6b142796;hp=9119473f534fd698aa83970175ab9bd58f43cbd1;hpb=aa5964216b3e1aacc436a54c870b719bb8a034db;p=d2df-sdl.git diff --git a/android/src/org/libsdl/app/SDLActivity.java b/android/src/org/libsdl/app/SDLActivity.java index 9119473..57f931e 100644 --- a/android/src/org/libsdl/app/SDLActivity.java +++ b/android/src/org/libsdl/app/SDLActivity.java @@ -4,7 +4,6 @@ import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.lang.reflect.Method; -import java.util.Objects; import android.app.*; import android.content.*; @@ -542,7 +541,7 @@ public class SDLActivity extends Activity { { 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")) {