| Index: mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/StreamRecyclerAdapter.java |
| =================================================================== |
| --- a/mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/StreamRecyclerAdapter.java |
| +++ b/mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/StreamRecyclerAdapter.java |
| @@ -210,16 +210,20 @@ |
| context.getResources().getBoolean(R.bool.pref_activitystream_visited_enabled_default)); |
| setViewVisible(bookmarksEnabled || visitedEnabled, holder.itemView); |
| } else if (type == RowItemType.TOP_STORIES_TITLE.getViewType()) { |
| final Context context = holder.itemView.getContext(); |
| final boolean pocketEnabled = ActivityStreamConfiguration.isPocketEnabledByLocale(context) && |
| GeckoSharedPrefs.forProfile(context).getBoolean(ActivityStreamPanel.PREF_POCKET_ENABLED, |
| context.getResources().getBoolean(R.bool.pref_activitystream_pocket_enabled_default)); |
| setViewVisible(pocketEnabled, holder.itemView); |
| + } else if (type == RowItemType.LEARN_MORE_LINK.getViewType()) { |
| + // We always hide the learn more link |
| + // See https://issues.adblockplus.org/ticket/7213 |
| + setViewVisible(false, holder.itemView); |
| } |
| } |
| /** |
| * This sets a child view of the adapter visible or hidden. |
| * |
| * This only applies to children whose height and width are WRAP_CONTENT and MATCH_PARENT |
| * respectively. |