mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-24 05:04:50 -04:00
Refactor hotspot details dialog
This commit is contained in:
parent
0fa7b033e7
commit
e5bda9c395
@ -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();
|
||||
|
@ -36,9 +36,7 @@
|
||||
<string name="server_failed_toast_message">Couldn’t 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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user