summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r--src/com/android/settings/profiles/SetupActionsFragment.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/profiles/SetupActionsFragment.java b/src/com/android/settings/profiles/SetupActionsFragment.java
index 7203b48..28ca71f 100644
--- a/src/com/android/settings/profiles/SetupActionsFragment.java
+++ b/src/com/android/settings/profiles/SetupActionsFragment.java
@@ -734,7 +734,9 @@ public class SetupActionsFragment extends SettingsPreferenceFragment
@Override
public void afterTextChanged(Editable s) {
- final boolean empty = TextUtils.isEmpty(s.toString());
+ final String str = s.toString();
+ final boolean empty = TextUtils.isEmpty(str)
+ || TextUtils.getTrimmedLength(str) == 0;
alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(!empty);
}
});