@yongsheng @ShDavidliu , please reference http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.2_r1/com/android/internal/app/AlertController.java#129 .

The AlertController will dispatch the dismiss message after dispatch the on click message.