File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/player/helper Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments