Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2696)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/selection/SelectableListLayout.java

Issue 2603403003: [Android History] Add tests for removing items (Closed)
Patch Set: Changes from dfalcantara@ review Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/widget/selection/SelectableListLayout.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/selection/SelectableListLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/selection/SelectableListLayout.java
index 464b5b52cc9c0b145a125526352d84de201a83f2..3594397c987157857eb21e74122996900b8a8ae7 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/selection/SelectableListLayout.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/selection/SelectableListLayout.java
@@ -139,10 +139,12 @@ public class SelectableListLayout<E> extends RelativeLayout {
*
* @param emptyDrawable The Drawable to show when the selectable list is empty.
* @param emptyStringResId The string to show when the selectable list is empty.
+ * @return The {@link TextView} displayed when the list is empty.
*/
- public void initializeEmptyView(Drawable emptyDrawable, int emptyStringResId) {
+ public TextView initializeEmptyView(Drawable emptyDrawable, int emptyStringResId) {
mEmptyView.setCompoundDrawablesWithIntrinsicBounds(null, emptyDrawable, null, null);
mEmptyView.setText(emptyStringResId);
+ return mEmptyView;
}
/**

Powered by Google App Engine
This is Rietveld 408576698