fix bugs.
This commit is contained in:
@@ -165,14 +165,7 @@ 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());
|
||||
@@ -195,6 +188,14 @@ public class WheatFeedingDialogFragment extends BaseMvpDialogFragment<WheatPrese
|
||||
} else if (id == R.id.tv_qk) {
|
||||
MvpPre.clearApply(roomId);
|
||||
}
|
||||
// 通过 ID 获取资源名称
|
||||
String viewName = "";
|
||||
try {
|
||||
viewName = view.getContext().getResources().getResourceEntryName(id);
|
||||
} catch (Exception e) {
|
||||
viewName = "未知View ID: " + id;
|
||||
}
|
||||
LogUtils.e("wheatFeedingDF","点击了" + viewName );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user