check if the if the content provider is disabled (the app itself)

This commit is contained in:
kapodamy 2019-08-15 21:48:07 -03:00
parent dee3a18ea8
commit 8f13a7ec97
1 changed files with 3 additions and 1 deletions

View File

@ -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;