summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/view
diff options
context:
space:
mode:
authorSagar Dhawan <sdhawan@codeaurora.org>2015-09-08 18:35:44 -0700
committerjrizzoli <joey@cyanogenmoditalia.it>2015-11-05 14:22:56 +0100
commit1f90932521e734894589bc7575db18c050cf286a (patch)
treea540d0d3ab0642e00cfcaba0e263ec968db76418 /src/com/android/browser/view
parentf49e0225d78ad323314200c55d1017809fabcc93 (diff)
downloadandroid_packages_apps_Gello-1f90932521e734894589bc7575db18c050cf286a.tar.gz
android_packages_apps_Gello-1f90932521e734894589bc7575db18c050cf286a.tar.bz2
android_packages_apps_Gello-1f90932521e734894589bc7575db18c050cf286a.zip
Add ellipsizing of Bookmark label text
CR-Fixed: 903472 Change-Id: I2767562eadcde8c19f02f09b6b856137a556287f
Diffstat (limited to 'src/com/android/browser/view')
-rw-r--r--src/com/android/browser/view/BookmarkContainer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/browser/view/BookmarkContainer.java b/src/com/android/browser/view/BookmarkContainer.java
index b36dde2f..463b1bf2 100644
--- a/src/com/android/browser/view/BookmarkContainer.java
+++ b/src/com/android/browser/view/BookmarkContainer.java
@@ -21,6 +21,7 @@ import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.StateListDrawable;
import android.graphics.drawable.TransitionDrawable;
+import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
@@ -102,6 +103,7 @@ public class BookmarkContainer extends LinearLayout implements OnClickListener {
public void setBottomLabelText(String bottomLabel) {
((TextView) findViewById(R.id.label)).setText(bottomLabel);
+ ((TextView) findViewById(R.id.label)).setEllipsize(TextUtils.TruncateAt.END);
}
public void setOverlayBadge(int imgResId) {