From e4ee3faa81288023b9e919a8687cfe1a9e87fa1c Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 8 Oct 2020 20:40:57 -0700 Subject: Change DLNA to default to off since it causes so many issues --- .../main/java/github/daneren2005/dsub/fragments/SettingsFragment.java | 2 +- app/src/main/java/github/daneren2005/dsub/util/MediaRouteManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/github') 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(); } } -- cgit v1.2.3