Changed default autoplay type to "Only on WiFi"

This commit is contained in:
Avently 2020-01-09 19:27:10 +03:00
parent 22bb129bd9
commit 6fc91312d2
2 changed files with 6 additions and 6 deletions

View file

@ -216,17 +216,17 @@ public class PlayerHelper {
@AutoplayType @AutoplayType
public static int getAutoplayType(@NonNull final Context context) { public static int getAutoplayType(@NonNull final Context context) {
final String defaultType = context.getString(R.string.autoplay_always_key); final String defaultType = context.getString(R.string.autoplay_wifi_key);
final String wifi = 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 never = context.getString(R.string.autoplay_never_key);
final String type = getAutoplayType(context, defaultType); final String type = getAutoplayType(context, defaultType);
if (type.equals(wifi)) { if (type.equals(always)) {
return AUTOPLAY_TYPE_WIFI; return AUTOPLAY_TYPE_ALWAYS;
} else if (type.equals(never)) { } else if (type.equals(never)) {
return AUTOPLAY_TYPE_NEVER; return AUTOPLAY_TYPE_NEVER;
} else { } else {
return AUTOPLAY_TYPE_ALWAYS; return AUTOPLAY_TYPE_WIFI;
} }
} }

View file

@ -65,7 +65,7 @@
<string name="autoplay_key" translatable="false">autoplay_key</string> <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_always_key" translatable="false">autoplay_always_key</string>
<string name="autoplay_wifi_key" translatable="false">autoplay_wifi_key</string> <string name="autoplay_wifi_key" translatable="false">autoplay_wifi_key</string>
<string name="autoplay_never_key" translatable="false">autoplay_never_key</string> <string name="autoplay_never_key" translatable="false">autoplay_never_key</string>