Commit 877bd3c3 by onuma

#44645 チャット詳細画面で、作業のプッシュメッセージを受信してダイアログを閉じると操作できなくなる。

parent 47084337
...@@ -116,7 +116,12 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity { ...@@ -116,7 +116,12 @@ 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 dialogInterface, int i) {
alertDialog.dismiss();
}
});
} else { } else {
alertDialog.setPositiveButton(R.string.move, new DialogInterface.OnClickListener() { alertDialog.setPositiveButton(R.string.move, new DialogInterface.OnClickListener() {
@Override @Override
...@@ -146,13 +151,14 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity { ...@@ -146,13 +151,14 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
dialog.dismiss(); dialog.dismiss();
} }
}); });
alertDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialog) {
finish();
}
});
} }
alertDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialog) {
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