From 40d88c005f80aa24b40a0b6bdd176a78628e24c0 Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Mon, 31 Oct 2011 20:36:50 +0000 Subject: [PATCH] Bug 698223 - Add Tab method to return title for display (r=mfinkle) --- embedding/android/Tab.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/embedding/android/Tab.java b/embedding/android/Tab.java index 676f9237988..95a52d1a908 100644 --- a/embedding/android/Tab.java +++ b/embedding/android/Tab.java @@ -102,6 +102,14 @@ public class Tab { return mTitle; } + public String getDisplayTitle() { + if (mTitle != null && mTitle.length() > 0) { + return mTitle; + } + + return mUrl; + } + public Drawable getFavicon() { return mFavicon; }