Fix themeing issues in ViewImageOrGifActivity and ViewImgurMediaActivity.

This commit is contained in:
Alex Ning 2020-06-17 22:36:22 +08:00
parent 5a6d18c0e4
commit b5fec7dac7
2 changed files with 4 additions and 0 deletions

View File

@ -99,6 +99,8 @@ public class ViewImageOrGifActivity extends AppCompatActivity implements SetAsWa
((Infinity) getApplication()).getAppComponent().inject(this);
getTheme().applyStyle(R.style.Theme_Normal, true);
getTheme().applyStyle(FontStyle.valueOf(mSharedPreferences
.getString(SharedPreferencesUtils.FONT_SIZE_KEY, FontStyle.Normal.name())).getResId(), true);

View File

@ -89,6 +89,8 @@ public class ViewImgurMediaActivity extends AppCompatActivity implements SetAsWa
((Infinity) getApplication()).getAppComponent().inject(this);
getTheme().applyStyle(R.style.Theme_Normal, true);
getTheme().applyStyle(FontStyle.valueOf(sharedPreferences
.getString(SharedPreferencesUtils.FONT_SIZE_KEY, FontStyle.Normal.name())).getResId(), true);