From 8f13a7ec973c7f5180b03ef7867dc608f726cc8a Mon Sep 17 00:00:00 2001 From: kapodamy Date: Thu, 15 Aug 2019 21:48:07 -0300 Subject: [PATCH] check if the if the content provider is disabled (the app itself) --- .../java/org/schabi/newpipe/settings/NewPipeSettings.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java b/app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java index cda3cad10..6f26534fb 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java +++ b/app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java @@ -140,7 +140,9 @@ public class NewPipeSettings { int availableProviders = 0; for (ResolveInfo info : infoList) { - if (info.activityInfo.exported) availableProviders++; + if (info.activityInfo != null && info.activityInfo.enabled && info.activityInfo.exported) { + availableProviders++; + } } return availableProviders > 0;