commit | 8fdd3b3144316fab4451181c2eb28fd75fdea1be | [log] [tgz] |
---|---|---|
author | Svet Ganov <svetoslavganov@google.com> | Thu Aug 04 13:23:25 2016 -0700 |
committer | Svetoslav Ganov <svetoslavganov@google.com> | Thu Aug 04 20:31:27 2016 +0000 |
tree | 8b7389f97472c6febae80893053307184dbab014 | |
parent | 6edcac35a8e48024c1bf0ea03da6d866ed089a3b [diff] |
Prevent "dont't ask again" being inpropoerly propagated If the first permission of a several permission request is denied with prejudice the rest of the denied permissions in the sequence are also incorrectly denied with prejudice even if the user didn't select "don't ask again". bug:30653785 Change-Id: Ib942dd3c692d1c3a09dc1a64f2947ded0f193923
diff --git a/src/com/android/packageinstaller/permission/ui/handheld/GrantPermissionsViewHandlerImpl.java b/src/com/android/packageinstaller/permission/ui/handheld/GrantPermissionsViewHandlerImpl.java index f2b0912..6342826 100644 --- a/src/com/android/packageinstaller/permission/ui/handheld/GrantPermissionsViewHandlerImpl.java +++ b/src/com/android/packageinstaller/permission/ui/handheld/GrantPermissionsViewHandlerImpl.java
@@ -337,7 +337,7 @@ if (mResultListener != null) { view.clearAccessibilityFocus(); mResultListener.onPermissionGrantResult(mGroupName, false, - mDoNotAskCheckbox.isChecked()); + mShowDonNotAsk && mDoNotAskCheckbox.isChecked()); } break; case R.id.do_not_ask_checkbox: