mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 12:47:26 +01:00
Pause autoplaying video in ViewPostDetailActivity in onPause().
This commit is contained in:
parent
b1b2b1aa71
commit
a8dd4b351b
@ -386,6 +386,22 @@ public class ViewPostDetailActivity extends BaseActivity implements FlairBottomS
|
||||
mPostCommentSortTypeBottomSheetFragment = new PostCommentSortTypeBottomSheetFragment();
|
||||
}
|
||||
|
||||
@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;
|
||||
|
@ -42,7 +42,7 @@
|
||||
android:id="@+id/recycler_view_view_post_detail"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="48dp"
|
||||
android:paddingBottom="144dp"
|
||||
android:clipToPadding="false" />
|
||||
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
Loading…
Reference in New Issue
Block a user