aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2020-10-08 20:40:57 -0700
committerScott Jackson <daneren2005@gmail.com>2020-10-08 20:40:57 -0700
commite4ee3faa81288023b9e919a8687cfe1a9e87fa1c (patch)
treed5e6c4f4c46069407bc56990698c2185b6e2cb82 /app
parent09215909fa1cdecf6de7123c3f51bca08b039658 (diff)
downloaddsub-e4ee3faa81288023b9e919a8687cfe1a9e87fa1c.tar.gz
dsub-e4ee3faa81288023b9e919a8687cfe1a9e87fa1c.tar.bz2
dsub-e4ee3faa81288023b9e919a8687cfe1a9e87fa1c.zip
Change DLNA to default to off since it causes so many issues
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java2
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/MediaRouteManager.java2
-rw-r--r--app/src/main/res/xml/settings_cast.xml6
3 files changed, 5 insertions, 5 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java
index 31559305..c5463f38 100644
--- a/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java
+++ b/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java
@@ -214,7 +214,7 @@ public class SettingsFragment extends PreferenceCompatFragment implements Shared
if(downloadService != null) {
MediaRouteManager mediaRouter = downloadService.getMediaRouter();
- Boolean enabled = sharedPreferences.getBoolean(key, true);
+ Boolean enabled = sharedPreferences.getBoolean(key, false);
if (enabled) {
mediaRouter.addDLNAProvider();
} else {
diff --git a/app/src/main/java/github/daneren2005/dsub/util/MediaRouteManager.java b/app/src/main/java/github/daneren2005/dsub/util/MediaRouteManager.java
index e19cc156..00e02dab 100644
--- a/app/src/main/java/github/daneren2005/dsub/util/MediaRouteManager.java
+++ b/app/src/main/java/github/daneren2005/dsub/util/MediaRouteManager.java
@@ -141,7 +141,7 @@ public class MediaRouteManager extends MediaRouter.Callback {
addOnlineProviders();
}
- if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH && Util.getPreferences(downloadService).getBoolean(Constants.PREFERENCES_KEY_DLNA_CASTING_ENABLED, true)) {
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH && Util.getPreferences(downloadService).getBoolean(Constants.PREFERENCES_KEY_DLNA_CASTING_ENABLED, false)) {
addDLNAProvider();
}
}
diff --git a/app/src/main/res/xml/settings_cast.xml b/app/src/main/res/xml/settings_cast.xml
index 78bafdd4..2170d7ed 100644
--- a/app/src/main/res/xml/settings_cast.xml
+++ b/app/src/main/res/xml/settings_cast.xml
@@ -33,9 +33,9 @@
android:title="@string/settings.other_title">
<CheckBoxPreference
- android:title="@string/settings.casting.dlna_casting_enabled"
- android:summary="@string/settings.casting.dlna_casting_enabled.summary"
+ android:defaultValue="false"
android:key="dlnaCastingEnabled"
- android:defaultValue="true"/>
+ android:summary="@string/settings.casting.dlna_casting_enabled.summary"
+ android:title="@string/settings.casting.dlna_casting_enabled" />
</PreferenceCategory>
</PreferenceScreen> \ No newline at end of file