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:
parent
62a8a4a60a
commit
0def7e7230
2 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue