Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f07e658 authored by Svet Ganov's avatar Svet Ganov
Browse files

Update deny button in permission warning dialogs

bug:23899558

Change-Id: I37bf080d54fc4fff5dfcc9f8240b95c82fed56d2
parent e7be5c33
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -157,7 +157,10 @@
        It will get access to:</string>

    <!-- Title for the dialog button to deny a permission grant. -->
    <string name="grant_dialog_button_deny">Deny anyway</string>
    <string name="grant_dialog_button_deny">Deny</string>

    <!-- Title for the dialog button to deny a permission grant despite a warning of implications. -->
    <string name="grant_dialog_button_deny_anyway">Deny anyway</string>

    <!-- Template for the current permission from the total number of permissions. -->
    <string name="current_permission_template">
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ public final class ConfirmActionDialogFragment extends DialogFragment {
        return new AlertDialog.Builder(getContext())
                .setMessage(getArguments().getString(ARG_MESSAGE))
                .setNegativeButton(R.string.cancel, null)
                .setPositiveButton(R.string.grant_dialog_button_deny,
                .setPositiveButton(R.string.grant_dialog_button_deny_anyway,
                        new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
+1 −1
Original line number Diff line number Diff line
@@ -298,7 +298,7 @@ public final class AppPermissionsFragment extends SettingsWithHeader
                        .setMessage(grantedByDefault ? R.string.system_warning
                                : R.string.old_sdk_deny_warning)
                        .setNegativeButton(R.string.cancel, null)
                        .setPositiveButton(R.string.grant_dialog_button_deny,
                        .setPositiveButton(R.string.grant_dialog_button_deny_anyway,
                                new OnClickListener() {
                            @Override
                            public void onClick(DialogInterface dialog, int which) {
+1 −1
Original line number Diff line number Diff line
@@ -351,7 +351,7 @@ public final class PermissionAppsFragment extends PermissionsFrameFragment imple
                        .setMessage(grantedByDefault ? R.string.system_warning
                                : R.string.old_sdk_deny_warning)
                        .setNegativeButton(R.string.cancel, null)
                        .setPositiveButton(R.string.grant_dialog_button_deny,
                        .setPositiveButton(R.string.grant_dialog_button_deny_anyway,
                                new OnClickListener() {
                            @Override
                            public void onClick(DialogInterface dialog, int which) {
+1 −1
Original line number Diff line number Diff line
@@ -294,7 +294,7 @@ public final class AppPermissionsFragment extends SettingsWithHeader
                        .setMessage(grantedByDefault ? R.string.system_warning
                                : R.string.old_sdk_deny_warning)
                        .setNegativeButton(R.string.cancel, null)
                        .setPositiveButton(R.string.grant_dialog_button_deny,
                        .setPositiveButton(R.string.grant_dialog_button_deny_anyway,
                                new OnClickListener() {
                            @Override
                            public void onClick(DialogInterface dialog, int which) {
Loading