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

Commit d1031672 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Settings: Also disallow profile names with spaces"

parents cc7f74a6 7d92f878
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);
            }
        });