diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-10-07 00:38:38 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-10-07 00:38:38 +0000 |
commit | 35f9a645d864922f12fa9c04793adf7e3ce39036 (patch) | |
tree | f3985adaba4aa934cc6acc4041b349f24285b0d8 /app/src/main/java | |
parent | f36cef5954ee0c7f0cd7ae74921cbfb328063789 (diff) | |
download | infinity-for-reddit-35f9a645d864922f12fa9c04793adf7e3ce39036.tar infinity-for-reddit-35f9a645d864922f12fa9c04793adf7e3ce39036.tar.gz infinity-for-reddit-35f9a645d864922f12fa9c04793adf7e3ce39036.tar.bz2 infinity-for-reddit-35f9a645d864922f12fa9c04793adf7e3ce39036.tar.lz infinity-for-reddit-35f9a645d864922f12fa9c04793adf7e3ce39036.tar.xz infinity-for-reddit-35f9a645d864922f12fa9c04793adf7e3ce39036.tar.zst infinity-for-reddit-35f9a645d864922f12fa9c04793adf7e3ce39036.zip |
Fix app crashes when opening images and videos.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImageActivity.java | 2 | ||||
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImageActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImageActivity.java index 0e60b4e4..9d1d20af 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImageActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewImageActivity.java @@ -90,6 +90,8 @@ public class ViewImageActivity extends AppCompatActivity { ((Infinity) getApplication()).getAppComponent().inject(this); + getTheme().applyStyle(R.style.Theme_Default, 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/ViewVideoActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java index 8ef2f0f7..222ecbf8 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java @@ -74,6 +74,8 @@ public class ViewVideoActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + getTheme().applyStyle(R.style.Theme_Default, true); + setContentView(R.layout.activity_view_video); ButterKnife.bind(this); setVolumeControlStream(AudioManager.STREAM_MUSIC); |