File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/com/afwsamples/testdpc/policy/wifimanagement Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ private void populateUi() {
168168 }
169169
170170 private boolean extractInputDataAndSave () {
171- String ssid = mSsidEditText .getText ().toString ();
171+ String ssid = getQuotedString ( mSsidEditText .getText ().toString () );
172172 if (TextUtils .isEmpty (ssid )) {
173173 mSsidEditText .setError (getString (R .string .error_missing_ssid ));
174174 return false ;
@@ -196,6 +196,10 @@ private boolean extractInputDataAndSave() {
196196 return false ;
197197 }
198198
199+ private String getQuotedString (String string ) {
200+ return "\" " + string + "\" " ;
201+ }
202+
199203 private WifiEnterpriseConfig extractEnterpriseConfig () {
200204 WifiEnterpriseConfig config = new WifiEnterpriseConfig ();
201205 config .setEapMethod (WifiEnterpriseConfig .Eap .TLS );
You can’t perform that action at this time.
0 commit comments