From 33d4dfc745483ec6b6eeb1e6f24d8ae73dc3cbc5 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 20 Apr 2016 13:34:24 -0400 Subject: [PATCH] Revert "Prevent the small-mode default from changing between portrait and landscape orientations" This reverts commit 7c1eb80d62b81a17fc9190082e78588a74ef39e2. --- .../com/limelight/preferences/PreferenceConfiguration.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/com/limelight/preferences/PreferenceConfiguration.java b/app/src/main/java/com/limelight/preferences/PreferenceConfiguration.java index fe11ef01..c7757573 100644 --- a/app/src/main/java/com/limelight/preferences/PreferenceConfiguration.java +++ b/app/src/main/java/com/limelight/preferences/PreferenceConfiguration.java @@ -3,7 +3,6 @@ package com.limelight.preferences; import android.content.Context; import android.content.SharedPreferences; import android.content.pm.PackageManager; -import android.content.res.Configuration; import android.os.Build; import android.preference.PreferenceManager; @@ -101,10 +100,7 @@ public class PreferenceConfiguration { } // Use small mode on anything smaller than a 7" tablet - // We check both width and height because these will change when the - // screen is rotated and we don't want this to change the small-mode setting. - Configuration config = context.getResources().getConfiguration(); - return config.screenWidthDp < 600 || config.screenHeightDp < 600; + return context.getResources().getConfiguration().screenWidthDp < 600; } public static int getDefaultBitrate(Context context) {