make medium the default font size on startup
This commit is contained in:
parent
7abd8c8d70
commit
b2f9f87fc8
|
@ -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…
Reference in New Issue