|
|
|
|
@ -213,10 +213,10 @@ public class LiveActivity extends BaseActivity implements GroupPresenter.OnClick |
|
|
|
|
mBinding.control.invert.setActivated(Setting.isInvert()); |
|
|
|
|
mBinding.control.across.setActivated(Setting.isAcross()); |
|
|
|
|
mBinding.control.change.setActivated(Setting.isChange()); |
|
|
|
|
mBinding.control.home.setVisibility(LiveConfig.isOnly() ? View.GONE : View.VISIBLE); |
|
|
|
|
findViewById(R.id.timeBar).setNextFocusUpId(R.id.player); |
|
|
|
|
getExo().getSubtitleView().setStyle(ExoUtil.getCaptionStyle()); |
|
|
|
|
getIjk().getSubtitleView().setStyle(ExoUtil.getCaptionStyle()); |
|
|
|
|
mBinding.control.home.setVisibility(LiveConfig.isOnly() ? View.GONE : View.VISIBLE); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setScale(int scale) { |
|
|
|
|
@ -236,6 +236,7 @@ public class LiveActivity extends BaseActivity implements GroupPresenter.OnClick |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void getLive() { |
|
|
|
|
mBinding.control.home.setText(getHome().getName()); |
|
|
|
|
mPlayers.setPlayer(getPlayerType(-1)); |
|
|
|
|
mViewModel.getLive(getHome()); |
|
|
|
|
setPlayerView(); |
|
|
|
|
@ -249,7 +250,6 @@ public class LiveActivity extends BaseActivity implements GroupPresenter.OnClick |
|
|
|
|
for (Group group : live.getGroups()) (group.isHidden() ? mHides : items).add(group); |
|
|
|
|
mGroupAdapter.setItems(items, null); |
|
|
|
|
setPosition(LiveConfig.get().find(items)); |
|
|
|
|
mBinding.control.home.setText(live.getName()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setWidth(Live live) { |
|
|
|
|
|