Commits

Anonymous committed 6251d70

'When to daydream' dialog does not follow the JB dialog design guide

The dialog is a single selection popup and according to the
dialogs design guide the popup should close when the user
has make his/her choice, but in this case it does not.

Change-Id: Iac6bc19146a88236d3253d2d846212ce09b4925b

Comments (0)

Files changed (1)

src/com/android/settings/DreamSettings.java

                     public void onClick(DialogInterface dialog, int item) {
                         mBackend.setActivatedOnDock(item == 0 || item == 2);
                         mBackend.setActivatedOnSleep(item == 1 || item == 2);
+                        dialog.dismiss();
                     }
                 })
                 .create();