From b2f9f87fc871e121ac96c0fb12e793ce5e5d2a4b Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Fri, 1 Dec 2017 22:42:43 +0100 Subject: [PATCH] make medium the default font size on startup --- app/build.gradle | 4 ++-- .../java/com/keylesspalace/tusky/BaseActivity.java | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a0e8710e7..c58d0e492 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "com.keylesspalace.tusky" minSdkVersion 15 targetSdkVersion 27 - versionCode 29 - versionName "1.3.1" + versionCode 30 + versionName "1.4.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary true } diff --git a/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java b/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java index cc9e29c25..06d0529fc 100644 --- a/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java @@ -66,17 +66,18 @@ public abstract class BaseActivity extends AppCompatActivity { } int style; - switch(preferences.getString("statusTextSize", "small")) { + switch(preferences.getString("statusTextSize", "medium")) { case "large": style = R.style.TextSizeLarge; break; - case "medium": - style = R.style.TextSizeMedium; - break; case "small": - default: style = R.style.TextSizeSmall; break; + case "medium": + default: + style = R.style.TextSizeMedium; + break; + } getTheme().applyStyle(style, false);