diff --git a/astrid/plugin-src/com/todoroo/astrid/files/FilesControlSet.java b/astrid/plugin-src/com/todoroo/astrid/files/FilesControlSet.java index 1307c0dca..35250075f 100644 --- a/astrid/plugin-src/com/todoroo/astrid/files/FilesControlSet.java +++ b/astrid/plugin-src/com/todoroo/astrid/files/FilesControlSet.java @@ -294,7 +294,7 @@ public class FilesControlSet extends PopupControlSet { Intent marketIntent = Constants.MARKET_STRATEGY.generateMarketLink(packageName); try { activity.startActivity(marketIntent); - } catch (ActivityNotFoundException ane) { + } catch (ActivityNotFoundException anf) { DialogUtilities.okDialog(activity, activity.getString(R.string.EPr_marketUnavailable_dlg), null); diff --git a/astrid/src/com/todoroo/astrid/service/MarketStrategy.java b/astrid/src/com/todoroo/astrid/service/MarketStrategy.java index 010f3bcb2..4f2438d8f 100644 --- a/astrid/src/com/todoroo/astrid/service/MarketStrategy.java +++ b/astrid/src/com/todoroo/astrid/service/MarketStrategy.java @@ -82,4 +82,25 @@ public abstract class MarketStrategy { } + public static class NookMarketStrategy extends MarketStrategy { + + @Override + public Intent generateMarketLink(String packageName) { + return new Intent(Intent.ACTION_VIEW, + Uri.parse("market://search?q=pname:" + //$NON-NLS-1$ + packageName)); + } + + @Override + public boolean includesLocalePlugin() { + return false; + } + + @Override + public boolean showAddonMenu() { + return false; + } + + } + }