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
|
@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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue