'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
This commit is contained in:
Per Allard
2013-06-25 09:54:13 +02:00
committed by Takeshi Aimi
parent b5377a7165
commit 6251d707b1

View File

@@ -206,6 +206,7 @@ public class DreamSettings extends SettingsPreferenceFragment {
public void onClick(DialogInterface dialog, int item) { public void onClick(DialogInterface dialog, int item) {
mBackend.setActivatedOnDock(item == 0 || item == 2); mBackend.setActivatedOnDock(item == 0 || item == 2);
mBackend.setActivatedOnSleep(item == 1 || item == 2); mBackend.setActivatedOnSleep(item == 1 || item == 2);
dialog.dismiss();
} }
}) })
.create(); .create();