涉及到用户操作的加上登录验证, 把评论点赞抽离成工具方法
This commit is contained in:
@ -328,7 +328,7 @@ public class DialogUtils {
|
||||
public static void showWarningDialog(Context context, String title, CharSequence msg, String cancel, String confirm,
|
||||
final ConfirmListener cmListener, final CancelListener clListener) {
|
||||
|
||||
showAlertDialog(context, title, msg, cancel, confirm, cmListener, clListener);
|
||||
showAlertDialog(context, title, msg, confirm, cancel, cmListener, clListener);
|
||||
if (true) return; // TODO TEST
|
||||
|
||||
if (isShow) {
|
||||
@ -461,16 +461,16 @@ public class DialogUtils {
|
||||
.setPositiveButton(positive, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
if (clListener != null) {
|
||||
clListener.onCancel();
|
||||
if (cmListener != null) {
|
||||
cmListener.onConfirm();
|
||||
}
|
||||
}
|
||||
})
|
||||
.setNegativeButton(negative, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
if (cmListener != null) {
|
||||
cmListener.onConfirm();
|
||||
if (clListener != null) {
|
||||
clListener.onCancel();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user