mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-16 15:02:54 +00:00
parent
714459c528
commit
80624f844c
2 changed files with 14 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
package com.beemdevelopment.aegis.importers;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
|
||||
import com.beemdevelopment.aegis.encoding.Base64;
|
||||
|
@ -39,6 +40,18 @@ public class SteamImporter extends DatabaseImporter {
|
|||
return files[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstalledAppVersionSupported() {
|
||||
PackageInfo info;
|
||||
try {
|
||||
info = requireContext().getPackageManager().getPackageInfo(_pkgName, 0);
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return info.versionCode < 7460894;
|
||||
}
|
||||
|
||||
@Override
|
||||
public State read(InputStream stream, boolean isInternal) throws DatabaseImporterException {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue