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:
Hans-Christoph Steiner 2016-05-18 14:46:07 +02:00
parent 77376dfa42
commit 15005372a2

View File

@ -292,8 +292,10 @@ public class App extends ValueObject implements Comparable<App> {
this.name = (String) appInfo.loadLabel(pm);
this.icon = getIconName(packageName, packageInfo.versionCode);
this.compatible = true;
final Apk apk = new Apk();
apk.compatible = true;
apk.versionName = packageInfo.versionName;
apk.versionCode = packageInfo.versionCode;
apk.added = this.added;