|
@@ -31,6 +31,9 @@ import java.util.List;
|
|
|
import rx.functions.Action1;
|
|
import rx.functions.Action1;
|
|
|
|
|
|
|
|
import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_CLEAN_SURE;
|
|
import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_CLEAN_SURE;
|
|
|
|
|
+import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_GAME_ACCOUNT_DEL;
|
|
|
|
|
+import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_GAME_ACCOUNT_DEL_COMMIT;
|
|
|
|
|
+import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_GAME_ACCOUNT_LOOK;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Created by ljy on 2018/7/10.
|
|
* Created by ljy on 2018/7/10.
|
|
@@ -116,20 +119,20 @@ public class AdpGameAccount extends AdpCommonRecy<RecyleObj> {
|
|
|
look_tv.setOnClickListener(new View.OnClickListener() {
|
|
look_tv.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
public void onClick(View v) {
|
|
|
- ViewUtil.newInstance()
|
|
|
|
|
- .showGameAccountDetail((Activity) context, item.getId());
|
|
|
|
|
|
|
+ USER_GAME_ACCOUNT_LOOK.onEvent();
|
|
|
|
|
+ ViewUtil.newInstance().showGameAccountDetail((Activity) context, item.getId());
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
delete_layout.setOnClickListener(new View.OnClickListener() {
|
|
delete_layout.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
public void onClick(View v) {
|
|
|
-
|
|
|
|
|
|
|
+ USER_GAME_ACCOUNT_DEL.onEvent();
|
|
|
ViewUtil.showMsgDialog(context, new DialogConfig().setTitle("删除确认").setMsg("确定删除吗?").setBtnRightText("取消")
|
|
ViewUtil.showMsgDialog(context, new DialogConfig().setTitle("删除确认").setMsg("确定删除吗?").setBtnRightText("取消")
|
|
|
.setBtnLeftText("确定").setBtnLeftOnClickListener(new View.OnClickListener() {
|
|
.setBtnLeftText("确定").setBtnLeftOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void onClick(View view) {
|
|
public void onClick(View view) {
|
|
|
-// USER_CLEAN_SURE.onEvent();
|
|
|
|
|
- CommonUtil.getInstance().deleteGameAccount(context, 0, new Action1<Integer>() {
|
|
|
|
|
|
|
+ USER_GAME_ACCOUNT_DEL_COMMIT.onEvent();
|
|
|
|
|
+ CommonUtil.getInstance().deleteGameAccount(context, item.getId(), new Action1<Integer>() {
|
|
|
@Override
|
|
@Override
|
|
|
public void call(Integer integer) {
|
|
public void call(Integer integer) {
|
|
|
if (integer == 1){
|
|
if (integer == 1){
|