Merge remote-tracking branch 'origin/master'

This commit is contained in:
zlzw 2024-01-24 11:30:26 +08:00
commit 0c07e8c2be
7 changed files with 32 additions and 6 deletions

View File

@ -53,6 +53,7 @@
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:ellipsize="end" android:ellipsize="end"
android:singleLine="true" android:singleLine="true"
android:textStyle="bold"
android:text="@string/interactive_game_create_room_name" android:text="@string/interactive_game_create_room_name"
android:textColor="#000" android:textColor="#000"
android:textSize="14sp" /> android:textSize="14sp" />

View File

@ -4,14 +4,14 @@ ext {
buildToolsVersion: "29.0.2", buildToolsVersion: "29.0.2",
minSdkVersion : 21, minSdkVersion : 21,
targetSdkVersion : 33, targetSdkVersion : 33,
versionCode : 462, versionCode : 463,
versionName : "6.6.4" versionName : "6.6.5"
] ]
manifestPlaceholders = [ manifestPlaceholders = [
// //
serverHost : "https://napi.yaoulive.com", // serverHost : "https://napi.yaoulive.com",
// //
// serverHost : " https://ceshi.yaoulive.com", serverHost : " https://ceshi.yaoulive.com",
// //

View File

@ -5147,6 +5147,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
if (time > 0) { if (time > 0) {
mPkTimeCount2 = time; mPkTimeCount2 = time;
drPKtIME = time; drPKtIME = time;
timeTitle.setVisibility(View.VISIBLE);
timeTitle.post(countdownRunnable); timeTitle.post(countdownRunnable);
} }
} }

View File

@ -633,11 +633,17 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
((TextView) floatRedPacket.findViewById(R.id.progressText)).setText(data.getRedPacketNum() + "/" + data.getRedPacketTotal()); ((TextView) floatRedPacket.findViewById(R.id.progressText)).setText(data.getRedPacketNum() + "/" + data.getRedPacketTotal());
} }
if (data.getShowWarOrder() == 0) { if (data.getShowWarOrder() == 0) {
floatWarOrder.setVisibility(View.GONE); floatWarOrder.setVisibility(View.GONE);
floatBanner.setVisibility(View.VISIBLE); floatBanner.setVisibility(View.VISIBLE);
findViewById(R.id.banner_click).setVisibility(View.VISIBLE); findViewById(R.id.banner_click).setVisibility(View.VISIBLE);
} else { } else {
floatWarOrder.setVisibility(View.VISIBLE); if (mainHomeViewHolder!=null&&mainHomeViewHolder.isFloatWarOrder()){
floatWarOrder.setVisibility(View.GONE);
}else {
floatWarOrder.setVisibility(View.VISIBLE);
}
floatBanner.setVisibility(View.GONE); floatBanner.setVisibility(View.GONE);
findViewById(R.id.banner_click).setVisibility(View.GONE); findViewById(R.id.banner_click).setVisibility(View.GONE);
} }
@ -645,6 +651,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
@Override @Override
public void onError(String error) { public void onError(String error) {
ToastUtil.show(mContext.getString(R.string.net_error)); ToastUtil.show(mContext.getString(R.string.net_error));
} }
}); });

View File

@ -1,5 +1,7 @@
package com.yunbao.main.activity; package com.yunbao.main.activity;
import android.view.Window;
import android.view.WindowManager;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentManager;
@ -25,8 +27,10 @@ public class MainHomeCommunityActivity extends AbsActivity {
@Override @Override
protected void main() { protected void main() {
MainHomeCommunityVideoFragment communityVideoFragment = new MainHomeCommunityVideoFragment(); Window window = getWindow();
window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
MainHomeCommunityVideoFragment communityVideoFragment = new MainHomeCommunityVideoFragment();
FragmentManager FM = getSupportFragmentManager();//获取管理器 FragmentManager FM = getSupportFragmentManager();//获取管理器
FragmentTransaction FT = FM.beginTransaction();//获取启动器 FragmentTransaction FT = FM.beginTransaction();//获取启动器
FT.replace(R.id.fragment, communityVideoFragment);//替换碎片 FT.replace(R.id.fragment, communityVideoFragment);//替换碎片

View File

@ -204,6 +204,10 @@ public class MainHomeCommunityVideoFragment extends BaseFragment {
@Override @Override
public void onDestroy() { public void onDestroy() {
super.onDestroy(); super.onDestroy();
if (timer != null) {
timer.cancel();
timer = null;
}
getActivity().finish(); getActivity().finish();
} }

View File

@ -25,6 +25,11 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder {
private MainHomeGameViewHolder mainHomeGameLiveViewHolder; private MainHomeGameViewHolder mainHomeGameLiveViewHolder;
private final String mPageName = "home_page"; private final String mPageName = "home_page";
private ImageView img_trophy; private ImageView img_trophy;
private boolean floatWarOrder;
public boolean isFloatWarOrder() {
return floatWarOrder;
}
public MainHomeViewHolder(Context context, ViewGroup parentView) { public MainHomeViewHolder(Context context, ViewGroup parentView) {
super(context, parentView); super(context, parentView);
@ -60,18 +65,22 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder {
protected void loadPageData(int position) { protected void loadPageData(int position) {
switch (position) { switch (position) {
case 0: case 0:
floatWarOrder = false;
MobclickAgent.onEvent(mContext, "home_page_follow", "首页关注列表按钮"); MobclickAgent.onEvent(mContext, "home_page_follow", "首页关注列表按钮");
EventBus.getDefault().post(new FloatWarOrderEvent().setFloatWarOrder(false)); EventBus.getDefault().post(new FloatWarOrderEvent().setFloatWarOrder(false));
break; break;
case 1: case 1:
floatWarOrder = false;
MobclickAgent.onEvent(mContext, "home_page_hot", "首页热门列表按钮"); MobclickAgent.onEvent(mContext, "home_page_hot", "首页热门列表按钮");
EventBus.getDefault().post(new FloatWarOrderEvent().setFloatWarOrder(false)); EventBus.getDefault().post(new FloatWarOrderEvent().setFloatWarOrder(false));
break; break;
case 2: case 2:
floatWarOrder = false;
MobclickAgent.onEvent(mContext, "home_page_recommend", "首页推荐列表按钮"); MobclickAgent.onEvent(mContext, "home_page_recommend", "首页推荐列表按钮");
EventBus.getDefault().post(new FloatWarOrderEvent().setFloatWarOrder(false)); EventBus.getDefault().post(new FloatWarOrderEvent().setFloatWarOrder(false));
break; break;
case 3: case 3:
floatWarOrder = true;
MobclickAgent.onEvent(mContext, "home_page_redpk", "首页红包列表按钮"); MobclickAgent.onEvent(mContext, "home_page_redpk", "首页红包列表按钮");
EventBus.getDefault().post(new FloatWarOrderEvent().setFloatWarOrder(true)); EventBus.getDefault().post(new FloatWarOrderEvent().setFloatWarOrder(true));
break; break;