Skip to content

Commit

Permalink
Update app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java
Browse files Browse the repository at this point in the history
Co-authored-by: TiA4f8R <74829229+TiA4f8R@users.noreply.github.com>
  • Loading branch information
Stypox and AudricV authored Jun 15, 2021
1 parent 8ce2b67 commit 82fdd02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ public static boolean isTv(final Context context) {

public static boolean isTablet(@NonNull final Context context) {
final String tabletModeKey = context.getString(R.string.tablet_mode_key);

final String tabletModeSetting = PreferenceManager.getDefaultSharedPreferences(context)
.getString(tabletModeKey, "");
.getString(tabletModeKey, "");

if (tabletModeSetting.equals(context.getString(R.string.tablet_mode_on_key))) {
return true;
Expand Down

0 comments on commit 82fdd02

Please sign in to comment.