Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 920c40fe authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Use AlertDialog.setOnDismissListener

AlertDialog.Builder.setOnDismissListener is supported from API 17.

Bug: 10587358
Change-Id: Ie8ce8e283b803f7f6bb58ced446e676339f980eb
parent ed616083
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1196,10 +1196,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
                context, AlertDialog.THEME_HOLO_DARK);
        builder.setMessage(importantNoticeContents)
                .setPositiveButton(android.R.string.ok, null /* listener */)
                .setNegativeButton(R.string.go_to_settings, onClickListener)
                .setOnDismissListener(onDismissListener);
                .setNegativeButton(R.string.go_to_settings, onClickListener);
        final AlertDialog importantNoticeDialog = builder.create();
        importantNoticeDialog.setOnShowListener(onShowListener);
        importantNoticeDialog.setOnDismissListener(onDismissListener);
        showOptionDialog(importantNoticeDialog);
    }