make medium the default font size on startup

main
Conny Duck 7 years ago
parent b73b778579
commit ffeaae82c3
  1. 4
      app/build.gradle
  2. 11
      app/src/main/java/com/keylesspalace/tusky/BaseActivity.java

@ -9,8 +9,8 @@ android {
applicationId "com.keylesspalace.tusky" applicationId "com.keylesspalace.tusky"
minSdkVersion 15 minSdkVersion 15
targetSdkVersion 27 targetSdkVersion 27
versionCode 29 versionCode 30
versionName "1.3.1" versionName "1.4.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary true vectorDrawables.useSupportLibrary true
} }

@ -66,17 +66,18 @@ public abstract class BaseActivity extends AppCompatActivity {
} }
int style; int style;
switch(preferences.getString("statusTextSize", "small")) { switch(preferences.getString("statusTextSize", "medium")) {
case "large": case "large":
style = R.style.TextSizeLarge; style = R.style.TextSizeLarge;
break; break;
case "medium":
style = R.style.TextSizeMedium;
break;
case "small": case "small":
default:
style = R.style.TextSizeSmall; style = R.style.TextSizeSmall;
break; break;
case "medium":
default:
style = R.style.TextSizeMedium;
break;
} }
getTheme().applyStyle(style, false); getTheme().applyStyle(style, false);

Loading…
Cancel
Save