mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 12:19:54 +01:00
Add icon, title to Change Settings dialog.
This commit is contained in:
@@ -390,9 +390,12 @@ public class NavDrawerActivity extends BriarActivity implements
|
|||||||
|
|
||||||
AlertDialog.Builder b =
|
AlertDialog.Builder b =
|
||||||
new AlertDialog.Builder(this, R.style.BriarDialogTheme);
|
new AlertDialog.Builder(this, R.style.BriarDialogTheme);
|
||||||
|
b.setTitle(R.string.tor_override_settings_title);
|
||||||
|
b.setIcon(R.drawable.ic_settings_black_24dp);
|
||||||
b.setMessage(message);
|
b.setMessage(message);
|
||||||
b.setPositiveButton(R.string.continue_button, (dialog, which) ->
|
b.setPositiveButton(R.string.tor_override_settings_confirm,
|
||||||
viewModel.setTorEnabled(battery, mobileData, location));
|
(dialog, which) ->
|
||||||
|
viewModel.setTorEnabled(battery, mobileData, location));
|
||||||
b.setNegativeButton(R.string.cancel, (dialog, which) ->
|
b.setNegativeButton(R.string.cancel, (dialog, which) ->
|
||||||
dialog.dismiss());
|
dialog.dismiss());
|
||||||
b.show();
|
b.show();
|
||||||
|
|||||||
@@ -570,9 +570,11 @@
|
|||||||
<string name="lock_tap_to_unlock">Tap to unlock</string>
|
<string name="lock_tap_to_unlock">Tap to unlock</string>
|
||||||
|
|
||||||
<!-- Overriding Tor settings -->
|
<!-- Overriding Tor settings -->
|
||||||
|
<string name="tor_override_settings_title">Change Settings</string>
|
||||||
<string name="tor_override_settings_body">Turning on Tor will change the following settings:\n\n%1$s</string>
|
<string name="tor_override_settings_body">Turning on Tor will change the following settings:\n\n%1$s</string>
|
||||||
<string name="tor_override_mobile_data_setting">Don\'t use mobile data</string>
|
<string name="tor_override_mobile_data_setting">Don\'t use mobile data</string>
|
||||||
<string name="tor_override_network_setting">Don\'t connect to Internet (Tor) in %1$s</string>
|
<string name="tor_override_network_setting">Don\'t connect to Internet (Tor) in %1$s</string>
|
||||||
|
<string name="tor_override_settings_confirm">Change</string>
|
||||||
|
|
||||||
<!-- Screenshots -->
|
<!-- Screenshots -->
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user