aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java
index d46fdfe1..a150f656 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java
@@ -387,6 +387,22 @@ public class ViewPostDetailActivity extends BaseActivity implements FlairBottomS
}
@Override
+ protected void onResume() {
+ super.onResume();
+ if (mAdapter != null && mRecyclerView != null) {
+ mRecyclerView.onWindowVisibilityChanged(View.VISIBLE);
+ }
+ }
+
+ @Override
+ protected void onPause() {
+ super.onPause();
+ if (mAdapter != null && mRecyclerView != null) {
+ mRecyclerView.onWindowVisibilityChanged(View.GONE);
+ }
+ }
+
+ @Override
public SharedPreferences getDefaultSharedPreferences() {
return mSharedPreferences;
}