|
@@ -75,13 +75,13 @@ public class MatchFragment implements BaseViewFragment, MatchView, View.OnClickL
|
|
}
|
|
}
|
|
|
|
|
|
private void initListener() {
|
|
private void initListener() {
|
|
- mTourContainer = mView.findViewById(R.id.tv_tournament);
|
|
|
|
- mTourContainer.setOnClickListener(this);
|
|
|
|
|
|
+// mTourContainer = mView.findViewById(R.id.tv_tournament);
|
|
|
|
+// mTourContainer.setOnClickListener(this);
|
|
mTourTitle = mView.findViewById(R.id.match_tournament_title);
|
|
mTourTitle = mView.findViewById(R.id.match_tournament_title);
|
|
mTourCount = mView.findViewById(R.id.match_tournament_count);
|
|
mTourCount = mView.findViewById(R.id.match_tournament_count);
|
|
mTourArrow = mView.findViewById(R.id.match_tournament_arrow);
|
|
mTourArrow = mView.findViewById(R.id.match_tournament_arrow);
|
|
|
|
|
|
- setTourBar(0);
|
|
|
|
|
|
+// setTourBar(0);
|
|
|
|
|
|
mView.findViewById(R.id.ll_streaming).setOnClickListener(this);
|
|
mView.findViewById(R.id.ll_streaming).setOnClickListener(this);
|
|
}
|
|
}
|
|
@@ -136,7 +136,7 @@ public class MatchFragment implements BaseViewFragment, MatchView, View.OnClickL
|
|
}
|
|
}
|
|
|
|
|
|
private void initData() {
|
|
private void initData() {
|
|
- mPresenter.getTournamentList();
|
|
|
|
|
|
+// mPresenter.getTournamentList();
|
|
mPresenter.getCricketMatchList(true, mTimeType, mTournamentId, mStreaming, 1);
|
|
mPresenter.getCricketMatchList(true, mTimeType, mTournamentId, mStreaming, 1);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -224,17 +224,18 @@ public class MatchFragment implements BaseViewFragment, MatchView, View.OnClickL
|
|
@Override
|
|
@Override
|
|
public void onClick(View v) {
|
|
public void onClick(View v) {
|
|
int id = v.getId();
|
|
int id = v.getId();
|
|
- if (id == R.id.tv_tournament) {
|
|
|
|
- if (mTournaListDialog != null) {
|
|
|
|
- new XPopup.Builder(mContext)
|
|
|
|
- .moveUpToKeyboard(false)
|
|
|
|
- .isDestroyOnDismiss(false)
|
|
|
|
- .isLightNavigationBar(true)
|
|
|
|
- .navigationBarColor(mContext.getResources().getColor(R.color.colorWhite))
|
|
|
|
- .asCustom(mTournaListDialog)
|
|
|
|
- .show();
|
|
|
|
- }
|
|
|
|
- } else if (id == R.id.ll_streaming) {
|
|
|
|
|
|
+// if (id == R.id.tv_tournament) {
|
|
|
|
+// if (mTournaListDialog != null) {
|
|
|
|
+// new XPopup.Builder(mContext)
|
|
|
|
+// .moveUpToKeyboard(false)
|
|
|
|
+// .isDestroyOnDismiss(false)
|
|
|
|
+// .isLightNavigationBar(true)
|
|
|
|
+// .navigationBarColor(mContext.getResources().getColor(R.color.colorWhite))
|
|
|
|
+// .asCustom(mTournaListDialog)
|
|
|
|
+// .show();
|
|
|
|
+// }
|
|
|
|
+// } else
|
|
|
|
+ if (id == R.id.ll_streaming) {
|
|
if (mStreaming == 1) {
|
|
if (mStreaming == 1) {
|
|
mStreaming = 0;
|
|
mStreaming = 0;
|
|
mIvStreaming.setBackgroundTintList(ContextCompat.getColorStateList(mContext, R.color.c_CCCCCC));
|
|
mIvStreaming.setBackgroundTintList(ContextCompat.getColorStateList(mContext, R.color.c_CCCCCC));
|