diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-06-17 14:36:22 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-06-17 14:36:22 +0000 |
commit | b5fec7dac7e559391a95adb4342790fa54b172f9 (patch) | |
tree | f376577ae3b62232ed7d39ec8350a96921608dfe /app/src/main | |
parent | 5a6d18c0e4d30d3feb6005878779671d08430768 (diff) | |
download | infinity-for-reddit-b5fec7dac7e559391a95adb4342790fa54b172f9.tar infinity-for-reddit-b5fec7dac7e559391a95adb4342790fa54b172f9.tar.gz infinity-for-reddit-b5fec7dac7e559391a95adb4342790fa54b172f9.tar.bz2 infinity-for-reddit-b5fec7dac7e559391a95adb4342790fa54b172f9.tar.lz infinity-for-reddit-b5fec7dac7e559391a95adb4342790fa54b172f9.tar.xz infinity-for-reddit-b5fec7dac7e559391a95adb4342790fa54b172f9.tar.zst infinity-for-reddit-b5fec7dac7e559391a95adb4342790fa54b172f9.zip |
Fix themeing issues in ViewImageOrGifActivity and ViewImgurMediaActivity.
Diffstat (limited to 'app/src/main')
2 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImageOrGifActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImageOrGifActivity.java index 1cc7e5f0..68631472 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImageOrGifActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImageOrGifActivity.java @@ -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); diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImgurMediaActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImgurMediaActivity.java index 742b961f..0e073b70 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImgurMediaActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImgurMediaActivity.java @@ -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); |