Bug 1264223 - Reduce firstrun image size on smaller devices r?liuche draft
authorAndrzej Hunt <ahunt@mozilla.com>
Wed, 01 Jun 2016 16:36:37 -0700
changeset 374137 22e0ed9a3a3038a5f8c397a3b575f6aa9449dfdb
parent 374136 d3020e0d8d441163bf3f85ae24a37f144e12c7c3
child 522563 bf8c081c8abc760946cf6306b6aec452d1b1d06c
push id19942
push userahunt@mozilla.com
push dateWed, 01 Jun 2016 23:37:30 +0000
reviewersliuche
bugs1264223
milestone49.0a1
Bug 1264223 - Reduce firstrun image size on smaller devices r?liuche Previously the "next" link was hidden on devices such as the Nexus S. Reducing the size of the top image seems to be the most efficient way of ensuring that all content fits on screen. MozReview-Commit-ID: JFCYbXTEKp1
mobile/android/base/resources/values-sw360dp/dimens.xml
mobile/android/base/resources/values/dimens.xml
--- a/mobile/android/base/resources/values-sw360dp/dimens.xml
+++ b/mobile/android/base/resources/values-sw360dp/dimens.xml
@@ -2,9 +2,12 @@
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 
 <resources>
     <dimen name="tab_panel_column_width">156dip</dimen>
     <dimen name="tab_thumbnail_height">110dip</dimen>
     <dimen name="tab_thumbnail_width">148dip</dimen>
+
+    <dimen name="firstrun_background_height">180dp</dimen>
+    <dimen name="firstrun_min_height">180dp</dimen>
 </resources>
--- a/mobile/android/base/resources/values/dimens.xml
+++ b/mobile/android/base/resources/values/dimens.xml
@@ -55,18 +55,18 @@
          this will be downscaled to this value. If you need to use larger Favicons (Due to a UI
          redesign sometime after this is written) you should increase this value to the largest
          commonly-used size of favicon and, performance permitting, fetch the remainder from the
          database. The largest available size is always stored in the database, regardless of this
          value.-->
     <dimen name="favicon_largest_interesting_size">32dp</dimen>
 
     <dimen name="firstrun_content_width">300dp</dimen>
-    <dimen name="firstrun_min_height">180dp</dimen>
-    <dimen name="firstrun_background_height">180dp</dimen>
+    <dimen name="firstrun_min_height">120dp</dimen>
+    <dimen name="firstrun_background_height">120dp</dimen>
 
     <dimen name="overlay_prompt_content_width">260dp</dimen>
     <dimen name="overlay_prompt_button_width">148dp</dimen>
     <dimen name="overlay_prompt_container_width">@dimen/match_parent</dimen>
 
     <!-- Site security icon -->
     <dimen name="browser_toolbar_site_security_height">32dp</dimen>
     <dimen name="browser_toolbar_site_security_width">32dp</dimen>