pull/1/head
DreamDSTR 4 years ago
parent 80e5308601
commit 6cc4f4f989
  1. 11
      app/src/main/java/com/github/tvbox/osc/ui/activity/LivePlayActivity.java

@ -189,7 +189,8 @@ public class LivePlayActivity extends BaseActivity {
@Override
public void onItemClick(TvRecyclerView parent, View itemView, int position) {
if (selectedGroupIndex == currentGroupIndex && position == currentChannelIndex) return;
if (selectedGroupIndex == currentGroupIndex && position == currentChannelIndex)
return;
if (playChannel(position, false)) {
mHandler.post(mHideChannelListRun);
}
@ -201,7 +202,8 @@ public class LivePlayActivity extends BaseActivity {
@Override
public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
FastClickCheckUtil.check(view);
if (selectedGroupIndex == currentGroupIndex && position == currentChannelIndex) return;
if (selectedGroupIndex == currentGroupIndex && position == currentChannelIndex)
return;
if (playChannel(position, false)) {
mHandler.post(mHideChannelListRun);
}
@ -312,8 +314,7 @@ public class LivePlayActivity extends BaseActivity {
if (list.size() == 1 && list.get(0).getGroupName().startsWith("http://127.0.0.1")) {
showLoading();
loadProxyLives(list.get(0).getGroupName());
}
else {
} else {
channelGroupList.clear();
channelGroupList.addAll(list);
showSuccess();
@ -369,6 +370,8 @@ public class LivePlayActivity extends BaseActivity {
}
private void initLiveState() {
if (channelGroupList == null || channelGroupList.size() == 0)
return;
String lastChannelName = Hawk.get(HawkConfig.LIVE_CHANNEL, "");
int groupIndex = 0;

Loading…
Cancel
Save