Stops attempting to get signatures for not-installed packages

This only wastes a negligible amount of time, but causes silly
log messages.
This commit is contained in:
Ciaran Gultnieks 2012-09-14 07:12:25 +01:00
parent 335d27b725
commit ff8dde9cc7

View File

@ -284,7 +284,7 @@ public class AppDetails extends ListActivity {
// Get the signature of the installed package... // Get the signature of the installed package...
mInstalledSignature = null; mInstalledSignature = null;
mInstalledSigID = null; mInstalledSigID = null;
if (curver != null) { if (app.installedVersion != null) {
PackageManager pm = getBaseContext().getPackageManager(); PackageManager pm = getBaseContext().getPackageManager();
try { try {
PackageInfo pi = pm.getPackageInfo(appid, PackageInfo pi = pm.getPackageInfo(appid,