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

Commit 7d92f878 authored by linus_lee's avatar linus_lee Committed by Jessica Wagantall
Browse files

Settings: Also disallow profile names with spaces

Change-Id: Ie7d79518b0a0e28a929b7bdad3e41319e485af33
(cherry picked from commit 5334a9c7)
parent 342f91f4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -539,7 +539,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);
            }
        });