make medium the default font size on startup
This commit is contained in:
parent
7abd8c8d70
commit
b2f9f87fc8
2 changed files with 8 additions and 7 deletions
|
@ -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…
Reference in a new issue