Skip to content

Commit 376cba6

Browse files
committed
Remove useless getString for default setting value
1 parent cade272 commit 376cba6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,13 @@ public static int getMinimizeOnExitAction(@NonNull final Context context) {
265265
@AutoplayType
266266
public static int getAutoplayType(@NonNull final Context context) {
267267
final String type = getPreferences(context).getString(
268-
context.getString(R.string.autoplay_key),
269-
context.getString(R.string.autoplay_wifi_key));
268+
context.getString(R.string.autoplay_key), "");
270269
if (type.equals(context.getString(R.string.autoplay_always_key))) {
271270
return AUTOPLAY_TYPE_ALWAYS;
272271
} else if (type.equals(context.getString(R.string.autoplay_never_key))) {
273272
return AUTOPLAY_TYPE_NEVER;
274273
} else {
275-
return AUTOPLAY_TYPE_WIFI;
274+
return AUTOPLAY_TYPE_WIFI; // default
276275
}
277276
}
278277

0 commit comments

Comments
 (0)