Skip to content

Commit

Permalink
live bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haha459862 committed Jul 15, 2022
1 parent 6b71a63 commit befb61a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,23 @@ public boolean dispatchKeyEvent(KeyEvent event) {
return super.dispatchKeyEvent(event);
}

@Override
protected void onResume() {
super.onResume();
if (mVideoView != null) {
mVideoView.resume();
}
}


@Override
protected void onPause() {
super.onPause();
if (mVideoView != null) {
mVideoView.pause();
}
}

@Override
protected void onDestroy() {
super.onDestroy();
Expand Down Expand Up @@ -384,6 +401,7 @@ public void run() {
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
tvRightSettingLayout.setVisibility(View.INVISIBLE);
liveSettingGroupAdapter.setSelectedGroupIndex(-1);
}
});
animator.start();
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/layout/player_live_control_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
tools:visibility="visible">

<LinearLayout
android:layout_width="@dimen/vs_280"
android:layout_height="@dimen/vs_200"
android:layout_width="@dimen/vs_200"
android:layout_height="@dimen/vs_140"
android:layout_gravity="center"
android:background="@drawable/shape_user_focus"
android:focusable="false"
Expand All @@ -39,6 +39,7 @@
android:focusable="false"
android:focusableInTouchMode="false"
android:tag="vod_control_pause_t"
android:visibility="gone"
android:textColor="@android:color/white"
android:textSize="@dimen/ts_30"
tools:text="100" />
Expand Down

0 comments on commit befb61a

Please sign in to comment.