From 376cba696e3b33e307e65abfa73b813e70dca716 Mon Sep 17 00:00:00 2001 From: Stypox Date: Thu, 28 Jan 2021 14:35:00 +0100 Subject: [PATCH] Remove useless getString for default setting value --- .../java/org/schabi/newpipe/player/helper/PlayerHelper.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java b/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java index 8169f99e5..f56909844 100644 --- a/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java +++ b/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java @@ -265,14 +265,13 @@ public final class PlayerHelper { @AutoplayType public static int getAutoplayType(@NonNull final Context context) { final String type = getPreferences(context).getString( - context.getString(R.string.autoplay_key), - context.getString(R.string.autoplay_wifi_key)); + context.getString(R.string.autoplay_key), ""); if (type.equals(context.getString(R.string.autoplay_always_key))) { return AUTOPLAY_TYPE_ALWAYS; } else if (type.equals(context.getString(R.string.autoplay_never_key))) { return AUTOPLAY_TYPE_NEVER; } else { - return AUTOPLAY_TYPE_WIFI; + return AUTOPLAY_TYPE_WIFI; // default } }