Check current version by signature as well
This prevents multiple versions shown as installed, which might happen if many repos are used and contain the same versions of some app.
This commit is contained in:
parent
b2d6e79d30
commit
2b7585c1cf
@ -118,11 +118,9 @@ public class AppDetails extends ListActivity {
|
|||||||
version.setText(getString(R.string.version) + " " + apk.version
|
version.setText(getString(R.string.version) + " " + apk.version
|
||||||
+ (iscurrent ? "*" : ""));
|
+ (iscurrent ? "*" : ""));
|
||||||
|
|
||||||
// TODO: This will show 'Installed' for all apks with the same
|
|
||||||
// version code, which could be more than one if they come from
|
|
||||||
// different repos or are source/binary from the same one!
|
|
||||||
TextView status = (TextView) v.findViewById(R.id.status);
|
TextView status = (TextView) v.findViewById(R.id.status);
|
||||||
if (apk.vercode == app.installedVerCode)
|
if (apk.vercode == app.installedVerCode
|
||||||
|
&& apk.sig.equals(mInstalledSigID))
|
||||||
status.setText(getString(R.string.inst));
|
status.setText(getString(R.string.inst));
|
||||||
else
|
else
|
||||||
status.setText(getString(R.string.not_inst));
|
status.setText(getString(R.string.not_inst));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user