Bug 1183837 - "Tab closed" toast no longer truncates page title. r=mcomella, a=sledru
authorChenxia Liu <liuche@mozilla.com>
Thu, 20 Aug 2015 15:19:38 -0700
changeset 288864 5894913e42598cd8578958710b3e965409931c72
parent 288863 bb1e324928897d6a468acf13191a9785e858df8d
child 288865 f4b2c0381b884b23f69b6502112c77cf6c9b57cb
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella, sledru
bugs1183837
milestone42.0a2
Bug 1183837 - "Tab closed" toast no longer truncates page title. r=mcomella, a=sledru
mobile/android/base/resources/values/styles.xml
--- a/mobile/android/base/resources/values/styles.xml
+++ b/mobile/android/base/resources/values/styles.xml
@@ -664,18 +664,18 @@
     </style>
 
     <style name="ToastMessageBase" parent="ToastElementBase">
         <item name="android:textColor">@color/toast_button_text</item>
         <item name="android:layout_width">0dp</item>
         <item name="android:layout_weight">1</item>
         <item name="android:layout_height">wrap_content</item>
         <item name="android:layout_gravity">center_vertical</item>
-        <item name="android:ellipsize">none</item>
-        <item name="android:maxLines">3</item>
+        <item name="android:ellipsize">end</item>
+        <item name="android:maxLines">1</item>
         <item name="android:clickable">false</item>
         <item name="android:focusable">false</item>
     </style>
 
     <style name="ToastButtonBase" parent="ToastElementBase">
         <item name="android:background">@drawable/toast_button_background</item>
         <item name="android:textColor">@color/toast_button_text</item>
         <item name="android:minHeight">0dp</item>