mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 02:53:05 +00:00
Revert "Prevent the small-mode default from changing between portrait and landscape orientations"
This reverts commit 7c1eb80d62b81a17fc9190082e78588a74ef39e2.
This commit is contained in:
parent
f3bf63a668
commit
33d4dfc745
@ -3,7 +3,6 @@ package com.limelight.preferences;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.content.res.Configuration;
|
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
|
|
||||||
@ -101,10 +100,7 @@ public class PreferenceConfiguration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Use small mode on anything smaller than a 7" tablet
|
// Use small mode on anything smaller than a 7" tablet
|
||||||
// We check both width and height because these will change when the
|
return context.getResources().getConfiguration().screenWidthDp < 600;
|
||||||
// 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getDefaultBitrate(Context context) {
|
public static int getDefaultBitrate(Context context) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user