mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-10-12 14:17:38 +00:00
check if the if the content provider is disabled (the app itself)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user