Fix binding of install intents to package

This commit is contained in:
Dominik Schürmann 2014-02-27 21:43:52 +01:00
parent 7bbfd9d446
commit a2544fb2b0

View File

@ -96,7 +96,7 @@ public class OpenPgpListPreference extends DialogPreference {
(MARKET_INTENT, 0); (MARKET_INTENT, 0);
for (ResolveInfo resolveInfo : resInfo) { for (ResolveInfo resolveInfo : resInfo) {
Intent marketIntent = new Intent(MARKET_INTENT); Intent marketIntent = new Intent(MARKET_INTENT);
intent.setPackage(resolveInfo.activityInfo.packageName); marketIntent.setPackage(resolveInfo.activityInfo.packageName);
Drawable icon = resolveInfo.activityInfo.loadIcon(getContext().getPackageManager()); Drawable icon = resolveInfo.activityInfo.loadIcon(getContext().getPackageManager());
String marketName = String.valueOf(resolveInfo.activityInfo.applicationInfo String marketName = String.valueOf(resolveInfo.activityInfo.applicationInfo
.loadLabel(getContext().getPackageManager())); .loadLabel(getContext().getPackageManager()));