Skip to content

Commit

Permalink
live channel list empty bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haha459862 committed Jul 7, 2022
1 parent 9f31b69 commit a5c9cf7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ protected void init() {
initSettingItemView();
initLiveChannelList();
initLiveSettingGroupList();
showTime();
showNetSpeed();
}

@Override
Expand Down Expand Up @@ -825,6 +823,8 @@ private void initLiveState() {
}

livePlayerManager.init(mVideoView);
showTime();
showNetSpeed();
tvLeftChannelListLayout.setVisibility(View.INVISIBLE);
tvRightSettingLayout.setVisibility(View.INVISIBLE);

Expand Down Expand Up @@ -917,6 +917,7 @@ private void showNetSpeed() {
private Runnable mUpdateNetSpeedRun = new Runnable() {
@Override
public void run() {
if (mVideoView == null) return;
tvNetSpeed.setText(String.format("%.2fMB/s", (float)mVideoView.getTcpSpeed() / 1024.0 / 1024.0));
mHandler.postDelayed(this, 1000);
}
Expand Down

0 comments on commit a5c9cf7

Please sign in to comment.