Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/StreamRecyclerAdapter.java

Issue 29983555: Issue 7213 - Hide Learn more from new tab highlights (Closed)
Patch Set: Created Jan. 16, 2019, 12:56 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld