mark as compatible when App/Apk instances are from installed apps
By definition, an app that is already installed is compatible.
This commit is contained in:
parent
77376dfa42
commit
15005372a2
@ -292,8 +292,10 @@ public class App extends ValueObject implements Comparable<App> {
|
|||||||
|
|
||||||
this.name = (String) appInfo.loadLabel(pm);
|
this.name = (String) appInfo.loadLabel(pm);
|
||||||
this.icon = getIconName(packageName, packageInfo.versionCode);
|
this.icon = getIconName(packageName, packageInfo.versionCode);
|
||||||
|
this.compatible = true;
|
||||||
|
|
||||||
final Apk apk = new Apk();
|
final Apk apk = new Apk();
|
||||||
|
apk.compatible = true;
|
||||||
apk.versionName = packageInfo.versionName;
|
apk.versionName = packageInfo.versionName;
|
||||||
apk.versionCode = packageInfo.versionCode;
|
apk.versionCode = packageInfo.versionCode;
|
||||||
apk.added = this.added;
|
apk.added = this.added;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user