mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-01-30 17:13:50 +01:00
DroidFish: More efficient way to detect if scid on the go is installed.
This commit is contained in:
parent
bb0f757403
commit
37875c0311
|
@ -3198,11 +3198,12 @@ public class DroidFish extends Activity implements GUIInterface {
|
|||
}
|
||||
|
||||
private final boolean hasScidProvider() {
|
||||
List<ProviderInfo> providers = getPackageManager().queryContentProviders(null, 0, 0);
|
||||
for (ProviderInfo info : providers)
|
||||
if (info.authority.equals("org.scid.database.scidprovider"))
|
||||
return true;
|
||||
return false;
|
||||
try {
|
||||
getPackageManager().getPackageInfo("org.scid.android", 0);
|
||||
return true;
|
||||
} catch (PackageManager.NameNotFoundException ex) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private final void selectScidFile() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user