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"
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
}

@ -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);

Loading…
Cancel
Save