live bug fix

pull/1/head
haha459862 3 years ago
parent 6b71a63b25
commit befb61a898
  1. 18
      app/src/main/java/com/github/tvbox/osc/ui/activity/LivePlayActivity.java
  2. 5
      app/src/main/res/layout/player_live_control_view.xml

@ -172,6 +172,23 @@ public class LivePlayActivity extends BaseActivity {
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();
@ -384,6 +401,7 @@ public class LivePlayActivity extends BaseActivity {
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
tvRightSettingLayout.setVisibility(View.INVISIBLE);
liveSettingGroupAdapter.setSelectedGroupIndex(-1);
}
});
animator.start();

@ -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"
@ -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" />

Loading…
Cancel
Save