Refactor hotspot details dialog

This commit is contained in:
Adeel 2019-08-22 16:04:38 +05:00
parent 0fa7b033e7
commit e5bda9c395
2 changed files with 3 additions and 8 deletions

View File

@ -498,11 +498,8 @@ public class ZimHostActivity extends BaseActivity implements
});
builder.setTitle(this.getString(R.string.hotspot_turned_on));
builder.setMessage(
this.getString(R.string.hotspot_details_message) + "\n" + this.getString(
R.string.hotspot_ssid_label) + " " + wifiConfiguration.SSID + "\n" + this.getString(
R.string.hotspot_pass_label) + " " + wifiConfiguration.preSharedKey);
builder.setMessage(getString(R.string.hotspot_details_message, wifiConfiguration.SSID,
wifiConfiguration.preSharedKey));
builder.setCancelable(false);
AlertDialog dialog = builder.create();
dialog.show();

View File

@ -36,9 +36,7 @@
<string name="server_failed_toast_message">Couldnt start server.</string>
<string name="server_started__successfully_toast_message">Server started successfully.</string>
<string name="hotspot_turned_on">Hotspot turned on</string>
<string name="hotspot_details_message">Following are the details of your local hotspot.</string>
<string name="hotspot_ssid_label">SSID : </string>
<string name="hotspot_pass_label">Pass : </string>
<string name="hotspot_details_message">Following are the details of your local hotspot. \nSSID : %1$s \nPass : %2$s</string>
<string name="port_hint">8080</string>
<string name="server_textview_default_message">Select the files you wish to host on the server</string>
<string name="progress_dialog_starting_server">Starting server</string>