summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornebkat <nebkat@teamhacksung.org>2012-03-09 18:27:06 +0000
committernebkat <nebkat@teamhacksung.org>2012-03-09 18:27:06 +0000
commit3e7fdf1077d3c008080d9e4ecf03886325fe61d7 (patch)
tree720a75f2c8fedef906a07829ed43752eeff7d078 /src
parent7706f2f4c98e5a58a08f3f7edd1f5f51346921de (diff)
downloadandroid_packages_apps_Trebuchet-3e7fdf1077d3c008080d9e4ecf03886325fe61d7.tar.gz
android_packages_apps_Trebuchet-3e7fdf1077d3c008080d9e4ecf03886325fe61d7.tar.bz2
android_packages_apps_Trebuchet-3e7fdf1077d3c008080d9e4ecf03886325fe61d7.zip
Launcher: Fix market intent
Change-Id: I0072d75d11aaf63bd060d085aa2fc9e42c6fda2d
Diffstat (limited to 'src')
-rw-r--r--src/com/cyanogenmod/trebuchet/Launcher.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Launcher.java b/src/com/cyanogenmod/trebuchet/Launcher.java
index cf1ccd88d..d079cd838 100644
--- a/src/com/cyanogenmod/trebuchet/Launcher.java
+++ b/src/com/cyanogenmod/trebuchet/Launcher.java
@@ -2905,10 +2905,14 @@ public final class Launcher extends Activity
// Find the app market activity by resolving an intent.
// (If multiple app markets are installed, it will return the ResolverActivity.)
ComponentName activityName = intent.resolveActivity(getPackageManager());
+
+ if (activityName != null) {
+ mAppMarketIntent = intent;
+ }
+
if (activityName != null && (ViewConfiguration.get(this).hasPermanentMenuKey() ||
getResources().getBoolean(R.bool.config_cyanogenmod))) {
int coi = getCurrentOrientationIndexForGlobalIcons();
- mAppMarketIntent = intent;
sAppMarketIcon[coi] = updateTextButtonWithIconFromExternalActivity(
R.id.market_button, activityName, R.drawable.ic_launcher_market_holo);
marketButton.setVisibility(View.VISIBLE);