Provide default text sizes in TuskyBaseTheme (#3108)

These aren't necessary for the app, and are overwritten with the actual style
in `BaseActivity.onCreate()`.

But if they're missing the Android Studio layout preview renderer crashes.
This commit is contained in:
Nik Clayton 2022-12-30 13:11:26 +01:00 committed by GitHub
commit 0def7e7230
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -82,7 +82,7 @@ public abstract class BaseActivity extends AppCompatActivity implements Injectab
setTaskDescription(new ActivityManager.TaskDescription(appName, appIcon, recentsBackgroundColor));
int style = textStyle(preferences.getString("statusTextSize", "medium"));
getTheme().applyStyle(style, false);
getTheme().applyStyle(style, true);
if(requiresLogin()) {
redirectIfNotLoggedIn();