Bug 698223 - Add Tab method to return title for display (r=mfinkle)

This commit is contained in:
Lucas Rocha 2011-10-31 20:36:50 +00:00
parent fa9c813cb3
commit 40d88c005f

View File

@ -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;
}