mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-26 10:00:39 +00:00
Changed default autoplay type to "Only on WiFi"
This commit is contained in:
parent
22bb129bd9
commit
6fc91312d2
@ -216,17 +216,17 @@ public class PlayerHelper {
|
||||
|
||||
@AutoplayType
|
||||
public static int getAutoplayType(@NonNull final Context context) {
|
||||
final String defaultType = context.getString(R.string.autoplay_always_key);
|
||||
final String wifi = context.getString(R.string.autoplay_wifi_key);
|
||||
final String defaultType = context.getString(R.string.autoplay_wifi_key);
|
||||
final String always = context.getString(R.string.autoplay_always_key);
|
||||
final String never = context.getString(R.string.autoplay_never_key);
|
||||
|
||||
final String type = getAutoplayType(context, defaultType);
|
||||
if (type.equals(wifi)) {
|
||||
return AUTOPLAY_TYPE_WIFI;
|
||||
if (type.equals(always)) {
|
||||
return AUTOPLAY_TYPE_ALWAYS;
|
||||
} else if (type.equals(never)) {
|
||||
return AUTOPLAY_TYPE_NEVER;
|
||||
} else {
|
||||
return AUTOPLAY_TYPE_ALWAYS;
|
||||
return AUTOPLAY_TYPE_WIFI;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@
|
||||
|
||||
|
||||
<string name="autoplay_key" translatable="false">autoplay_key</string>
|
||||
<string name="autoplay_value" translatable="false">@string/autoplay_always_key</string>
|
||||
<string name="autoplay_value" translatable="false">@string/autoplay_wifi_key</string>
|
||||
<string name="autoplay_always_key" translatable="false">autoplay_always_key</string>
|
||||
<string name="autoplay_wifi_key" translatable="false">autoplay_wifi_key</string>
|
||||
<string name="autoplay_never_key" translatable="false">autoplay_never_key</string>
|
||||
|
Loading…
Reference in New Issue
Block a user