We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ce2b67 commit 82fdd02Copy full SHA for 82fdd02
app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java
@@ -58,8 +58,9 @@ public static boolean isTv(final Context context) {
58
59
public static boolean isTablet(@NonNull final Context context) {
60
final String tabletModeKey = context.getString(R.string.tablet_mode_key);
61
+
62
final String tabletModeSetting = PreferenceManager.getDefaultSharedPreferences(context)
- .getString(tabletModeKey, "");
63
+ .getString(tabletModeKey, "");
64
65
if (tabletModeSetting.equals(context.getString(R.string.tablet_mode_on_key))) {
66
return true;
0 commit comments