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: