Commit cc187762 by Lee Munkyeong

#45376

parent 89ee61c5
...@@ -116,7 +116,13 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity { ...@@ -116,7 +116,13 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
Bundle extras = getIntent().getExtras(); Bundle extras = getIntent().getExtras();
Long roomId = extras.getLong(AppDefType.ChatPushMessageKey.roomId, 0); Long roomId = extras.getLong(AppDefType.ChatPushMessageKey.roomId, 0);
if (roomId == 0) { if (roomId == 0) {
alertDialog.setPositiveButton(R.string.ok, null); alertDialog.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
setResult(ABookCommConstants.PUSH_MESSAGE_DLG_RESULT.CANCEL, getIntent());
dialog.dismiss();
}
});
} else { } else {
alertDialog.setPositiveButton(R.string.move, new DialogInterface.OnClickListener() { alertDialog.setPositiveButton(R.string.move, new DialogInterface.OnClickListener() {
@Override @Override
...@@ -146,13 +152,13 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity { ...@@ -146,13 +152,13 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
dialog.dismiss(); dialog.dismiss();
} }
}); });
}
alertDialog.setOnDismissListener(new DialogInterface.OnDismissListener() { alertDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override @Override
public void onDismiss(DialogInterface dialog) { public void onDismiss(DialogInterface dialog) {
finish(); finish();
} }
}); });
}
alertDialog.show(); alertDialog.show();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment