mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Use AlertDialog.setOnDismissListener
AlertDialog.Builder.setOnDismissListener is supported from API 17. Bug: 10587358 Change-Id: Ie8ce8e283b803f7f6bb58ced446e676339f980eb
This commit is contained in:
parent
ed616083dd
commit
920c40fe45
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user