am 920c40fe: Use AlertDialog.setOnDismissListener

* commit '920c40fe45c446f738a3d8e9fe7b321b8e92eb2e':
  Use AlertDialog.setOnDismissListener
This commit is contained in:
Tadashi G. Takaoka 2014-02-19 02:12:10 -08:00 committed by Android Git Automerger
commit 4f9fbad114

View file

@ -1196,10 +1196,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
context, AlertDialog.THEME_HOLO_DARK); context, AlertDialog.THEME_HOLO_DARK);
builder.setMessage(importantNoticeContents) builder.setMessage(importantNoticeContents)
.setPositiveButton(android.R.string.ok, null /* listener */) .setPositiveButton(android.R.string.ok, null /* listener */)
.setNegativeButton(R.string.go_to_settings, onClickListener) .setNegativeButton(R.string.go_to_settings, onClickListener);
.setOnDismissListener(onDismissListener);
final AlertDialog importantNoticeDialog = builder.create(); final AlertDialog importantNoticeDialog = builder.create();
importantNoticeDialog.setOnShowListener(onShowListener); importantNoticeDialog.setOnShowListener(onShowListener);
importantNoticeDialog.setOnDismissListener(onDismissListener);
showOptionDialog(importantNoticeDialog); showOptionDialog(importantNoticeDialog);
} }