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() {
168
168
}
169
169
170
170
private boolean extractInputDataAndSave () {
171
- String ssid = mSsidEditText .getText ().toString ();
171
+ String ssid = getQuotedString ( mSsidEditText .getText ().toString () );
172
172
if (TextUtils .isEmpty (ssid )) {
173
173
mSsidEditText .setError (getString (R .string .error_missing_ssid ));
174
174
return false ;
@@ -196,6 +196,10 @@ private boolean extractInputDataAndSave() {
196
196
return false ;
197
197
}
198
198
199
+ private String getQuotedString (String string ) {
200
+ return "\" " + string + "\" " ;
201
+ }
202
+
199
203
private WifiEnterpriseConfig extractEnterpriseConfig () {
200
204
WifiEnterpriseConfig config = new WifiEnterpriseConfig ();
201
205
config .setEapMethod (WifiEnterpriseConfig .Eap .TLS );
You can’t perform that action at this time.
0 commit comments