合并 new_dev
This commit is contained in:
@@ -24,6 +24,7 @@ import androidx.core.content.ContextCompat;
|
||||
import androidx.fragment.app.DialogFragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
|
||||
import com.blankj.utilcode.util.LogUtils;
|
||||
import com.xscm.modulemain.R;
|
||||
import com.xscm.moduleutil.bean.room.FriendUserBean;
|
||||
import com.xscm.moduleutil.utils.ImageUtils;
|
||||
@@ -56,17 +57,27 @@ public class FriendsDialogFragment extends DialogFragment {
|
||||
}
|
||||
|
||||
public static void show(FriendUserBean bean, FragmentManager fragmentManager) {
|
||||
FriendsDialogFragment fragment = new FriendsDialogFragment();
|
||||
Bundle args = new Bundle();
|
||||
args.putSerializable("FriendUserBean", bean);
|
||||
fragment.setArguments(args);
|
||||
fragment.show(fragmentManager, "FriendsDialogFragment");
|
||||
|
||||
new Handler(Looper.getMainLooper()).postDelayed(() -> {
|
||||
if (fragment != null && fragment.isAdded()) {
|
||||
fragment.dismiss();
|
||||
//activity 退到后台调用闪退
|
||||
try {
|
||||
// 检查 FragmentManager 状态
|
||||
if (fragmentManager.isDestroyed() || fragmentManager.isStateSaved()) {
|
||||
return;
|
||||
}
|
||||
}, 4000); // 4秒后关闭
|
||||
|
||||
FriendsDialogFragment fragment = new FriendsDialogFragment();
|
||||
Bundle args = new Bundle();
|
||||
args.putSerializable("FriendUserBean", bean);
|
||||
fragment.setArguments(args);
|
||||
fragment.show(fragmentManager, "FriendsDialogFragment");
|
||||
|
||||
new Handler(Looper.getMainLooper()).postDelayed(() -> {
|
||||
if (fragment != null && fragment.isAdded()) {
|
||||
fragment.dismiss();
|
||||
}
|
||||
}, 4000); // 4秒后关闭
|
||||
}catch (IllegalStateException e){
|
||||
LogUtils.e("FriendsDialogFragment: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ import androidx.core.content.ContextCompat;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
|
||||
import com.blankj.utilcode.util.GsonUtils;
|
||||
import com.blankj.utilcode.util.LogUtils;
|
||||
import com.xscm.modulemain.R;
|
||||
import com.xscm.modulemain.databinding.DialogGiftLotteryBinding;
|
||||
import com.xscm.moduleutil.base.BaseMvpDialogFragment;
|
||||
@@ -371,6 +372,15 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
|
||||
|
||||
private void onClisk(View view) {
|
||||
int id = view.getId();
|
||||
// 通过 ID 获取资源名称
|
||||
String viewName = "";
|
||||
try {
|
||||
viewName = view.getContext().getResources().getResourceEntryName(id);
|
||||
} catch (Exception e) {
|
||||
viewName = "未知View ID: " + id;
|
||||
}
|
||||
LogUtils.e("GiftLotteryDFragment","点击了" + viewName );
|
||||
|
||||
if (id == R.id.ll_one) {
|
||||
if (!isDrawing) {
|
||||
isDrawing = true;
|
||||
|
||||
@@ -97,6 +97,10 @@ public class RoomGiftDialogFragment extends BaseMvpDialogFragment<RewardGiftPres
|
||||
}
|
||||
|
||||
public static RoomGiftDialogFragment show(RoomInfoResp roomInfoResp, UserInfo userInfo, String roomId, int jingp, String heart_id, FragmentManager fragmentManager) {
|
||||
if (roomInfoResp == null && userInfo == null) {
|
||||
LogUtils.e("RoomGiftDialogFragment_show", "roomInfoResp and userInfo is null");
|
||||
return null;
|
||||
}
|
||||
RoomGiftDialogFragment dialogFragment = new RoomGiftDialogFragment();
|
||||
Bundle args = new Bundle();
|
||||
args.putSerializable("roomInfoResp", roomInfoResp);
|
||||
@@ -811,7 +815,6 @@ public class RoomGiftDialogFragment extends BaseMvpDialogFragment<RewardGiftPres
|
||||
if (mBinding.tvBbQs != null) {
|
||||
mBinding.tvBbQs.setVisibility(View.GONE);
|
||||
mBinding.cz.setVisibility(View.VISIBLE);
|
||||
MvpPre.wallet();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,9 +24,13 @@ import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.alibaba.android.arouter.launcher.ARouter;
|
||||
<<<<<<< HEAD
|
||||
import com.blankj.utilcode.util.ActivityUtils;
|
||||
import com.blankj.utilcode.util.LogUtils;
|
||||
import com.xscm.modulemain.Application;
|
||||
=======
|
||||
import com.blankj.utilcode.util.LogUtils;
|
||||
>>>>>>> branch_new_dev
|
||||
import com.xscm.modulemain.R;
|
||||
import com.xscm.modulemain.activity.room.contacts.RoomUserContacts;
|
||||
import com.xscm.modulemain.activity.user.activity.GiftWallActivity;
|
||||
@@ -190,6 +194,14 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
|
||||
|
||||
private void onClick(View view) {
|
||||
int id = view.getId();
|
||||
// 通过 ID 获取资源名称
|
||||
String viewName = "";
|
||||
try {
|
||||
viewName = view.getContext().getResources().getResourceEntryName(id);
|
||||
} catch (Exception e) {
|
||||
viewName = "未知View ID: " + id;
|
||||
}
|
||||
LogUtils.e("roomUserInfoFragment","点击了" + viewName );
|
||||
if (id == R.id.room_m_cz) {
|
||||
if (mBinding.roomMCz.getText().equals("上麦")) {
|
||||
MvpPre.applyPit(room_id, "");
|
||||
@@ -228,6 +240,7 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
|
||||
pit_number = "";
|
||||
}
|
||||
userInfo.setPit_number(pit_number);
|
||||
LogUtils.e("RoomGiftDialogFragment_userinfo");
|
||||
RoomGiftDialogFragment.show(null, userInfo, room_id, 0, "", getParentFragmentManager());
|
||||
}
|
||||
dismiss();
|
||||
|
||||
@@ -18,6 +18,7 @@ import androidx.recyclerview.widget.LinearSnapHelper;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.blankj.utilcode.util.GsonUtils;
|
||||
import com.blankj.utilcode.util.LogUtils;
|
||||
import com.xscm.moduleutil.R;
|
||||
import com.xscm.moduleutil.base.BaseMvpDialogFragment;
|
||||
import com.xscm.moduleutil.bean.GiftBean;
|
||||
@@ -254,6 +255,14 @@ public class TourClubDialogFragment extends BaseMvpDialogFragment<GiftLotteryPre
|
||||
|
||||
private void onClick(View view) {
|
||||
int id = view.getId();
|
||||
// 通过 ID 获取资源名称
|
||||
String viewName = "";
|
||||
try {
|
||||
viewName = view.getContext().getResources().getResourceEntryName(id);
|
||||
} catch (Exception e) {
|
||||
viewName = "未知View ID: " + id;
|
||||
}
|
||||
LogUtils.e("tourClubDFragment","点击了" + viewName );
|
||||
if (id == R.id.tv_jc) {
|
||||
if (giftLists != null && !giftLists.isEmpty()) {
|
||||
PrizePoolDialog prizePoolDialog = new PrizePoolDialog(getActivity());
|
||||
@@ -381,7 +390,9 @@ public class TourClubDialogFragment extends BaseMvpDialogFragment<GiftLotteryPre
|
||||
|
||||
}
|
||||
mBinding.gvFz.setIsLuckUser(false);
|
||||
giftXlhChouAdapter.setNewData(giftLists);
|
||||
if (giftXlhChouAdapter != null) {
|
||||
giftXlhChouAdapter.setNewData(giftLists);
|
||||
}
|
||||
// // 数据加载完成后启动自动滚动
|
||||
// if (giftLists != null && !giftLists.isEmpty()) {
|
||||
// mBinding.recycleView.post(() -> {
|
||||
@@ -543,10 +554,10 @@ public class TourClubDialogFragment extends BaseMvpDialogFragment<GiftLotteryPre
|
||||
scrollHelper = null;
|
||||
}
|
||||
|
||||
// 清理适配器引用
|
||||
if (giftXlhChouAdapter != null) {
|
||||
giftXlhChouAdapter = null;
|
||||
}
|
||||
// 清理适配器引用 存在一次调用 giftXlhChouAdapter.setNewData(giftLists); 中giftXlhChouAdapter = null;
|
||||
// if (giftXlhChouAdapter != null) {
|
||||
// giftXlhChouAdapter = null;
|
||||
// }
|
||||
|
||||
|
||||
if (xlhRecordDialog != null && xlhRecordDialog.isVisible()) {
|
||||
|
||||
@@ -14,6 +14,7 @@ import android.view.WindowManager;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
|
||||
import com.blankj.utilcode.util.LogUtils;
|
||||
import com.blankj.utilcode.util.ToastUtils;
|
||||
import com.xscm.modulemain.R;
|
||||
import com.xscm.modulemain.activity.room.contacts.WheatContacts;
|
||||
@@ -164,6 +165,14 @@ public class WheatFeedingDialogFragment extends BaseMvpDialogFragment<WheatPrese
|
||||
|
||||
private void onClick(View view) {
|
||||
int id = view.getId();
|
||||
// 通过 ID 获取资源名称
|
||||
String viewName = "";
|
||||
try {
|
||||
viewName = view.getContext().getResources().getResourceEntryName(id);
|
||||
} catch (Exception e) {
|
||||
viewName = "未知View ID: " + id;
|
||||
}
|
||||
LogUtils.e("wheatFeedingDF","点击了" + viewName );
|
||||
if (id == R.id.tv_3) {
|
||||
if (mBinding.tv3.getText().equals("设置")) {
|
||||
RoomWheatGiftSettingFragment.show(roomId, getChildFragmentManager());
|
||||
|
||||
Reference in New Issue
Block a user