1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-30 00:53:19 +00:00

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

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;