make medium the default font size on startup

This commit is contained in:
Conny Duck 2017-12-01 22:42:43 +01:00
parent 7abd8c8d70
commit b2f9f87fc8
2 changed files with 8 additions and 7 deletions

View File

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

View File

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