From a1b74677a59c3c79b69ef1f775ba157fb908cf3f Mon Sep 17 00:00:00 2001 From: Sam Steele Date: Mon, 19 Jan 2015 09:29:24 -0800 Subject: [PATCH] Only use the larger sizes on tablets --- res/layout/row_message.xml | 3 +-- res/values-sw600dp-land/dimens.xml | 2 ++ res/values-sw600dp/dimens.xml | 2 ++ res/values-sw800dp/dimens.xml | 2 ++ res/values/dimens.xml | 2 ++ res/xml-v14/preferences_display.xml | 2 +- res/xml/preferences_display.xml | 2 +- src/com/irccloud/android/fragment/MessageViewFragment.java | 2 +- 8 files changed, 12 insertions(+), 5 deletions(-) diff --git a/res/layout/row_message.xml b/res/layout/row_message.xml index a14ac38e2..6e29d471a 100644 --- a/res/layout/row_message.xml +++ b/res/layout/row_message.xml @@ -18,7 +18,6 @@ 200dp + 16 + 4dp \ No newline at end of file diff --git a/res/values-sw600dp/dimens.xml b/res/values-sw600dp/dimens.xml index 13688d58e..a97301bab 100644 --- a/res/values-sw600dp/dimens.xml +++ b/res/values-sw600dp/dimens.xml @@ -19,4 +19,6 @@ 16sp 16sp 28dp + 16 + 4dp \ No newline at end of file diff --git a/res/values-sw800dp/dimens.xml b/res/values-sw800dp/dimens.xml index c34f50590..b3b1bf5cd 100644 --- a/res/values-sw800dp/dimens.xml +++ b/res/values-sw800dp/dimens.xml @@ -18,4 +18,6 @@ 16sp 16sp 28dp + 16 + 4dp \ No newline at end of file diff --git a/res/values/dimens.xml b/res/values/dimens.xml index a1170f78a..0adbf0834 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -27,4 +27,6 @@ 25dp 0dp 2dp + 14 + 0dp diff --git a/res/xml-v14/preferences_display.xml b/res/xml-v14/preferences_display.xml index a2423d1c3..2eab5c927 100644 --- a/res/xml-v14/preferences_display.xml +++ b/res/xml-v14/preferences_display.xml @@ -43,7 +43,7 @@ events) { synchronized (adapterLock) { if(getActivity() != null) - textSize = PreferenceManager.getDefaultSharedPreferences(getActivity()).getInt("textSize", 16); + textSize = PreferenceManager.getDefaultSharedPreferences(getActivity()).getInt("textSize", getActivity().getResources().getInteger(R.integer.default_text_size)); timestamp_width = -1; if(conn.getReconnectTimestamp() == 0) conn.cancel_idle_timer(); //This may take a while...