Add icon, title to Change Settings dialog.

This commit is contained in:
akwizgran
2020-02-10 11:31:29 +00:00
parent d689cf776c
commit 7b1c6f3fdd
2 changed files with 7 additions and 2 deletions

View File

@@ -390,9 +390,12 @@ public class NavDrawerActivity extends BriarActivity implements
AlertDialog.Builder b =
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.setPositiveButton(R.string.continue_button, (dialog, which) ->
viewModel.setTorEnabled(battery, mobileData, location));
b.setPositiveButton(R.string.tor_override_settings_confirm,
(dialog, which) ->
viewModel.setTorEnabled(battery, mobileData, location));
b.setNegativeButton(R.string.cancel, (dialog, which) ->
dialog.dismiss());
b.show();

View File

@@ -570,9 +570,11 @@
<string name="lock_tap_to_unlock">Tap to unlock</string>
<!-- 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_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_settings_confirm">Change</string>
<!-- Screenshots -->