ALLOW button not working after update
<p>On the devices which have installed the latest update of Android Marshmallow - that is <a href="https://source.android.com/security/bulletin/2016-06-01.html" rel="nofollow noreferrer">June2016</a> update, when I ask for permissions, the ALLOW button is not working.</p>

<p>I have tested with these 2 devices:</p>

<p>Nexus 6p (Andoid version - 6.0.1, Build number - MTC19V) </p>

<p>Nexus 7 (Android version 6.0.1, Build number - MOB30M)</p>

<p>Both have the latest update, and when I request permissions, the dialog is shown, but I'm not able to press the ALLOW button. </p>

<p>Here is the code, that I use to request permissions:</p>

<pre><code>public void showPermissionsDialog() {
    if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {
        int hasWriteExternalStoragePermission = activity.checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE);
        int hasWriteGetAccountsPermission = activity.checkSelfPermission(android.Manifest.permission.GET_ACCOUNTS);

        if (hasWriteExternalStoragePermission != PackageManager.PERMISSION_GRANTED || hasWriteGetAccountsPermission != PackageManager.PERMISSION_GRANTED) {
            activity.requestPermissions(new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE, android.Manifest.permission.GET_ACCOUNTS}, MainActivity.REQUEST_CODE_ASK_PERMISSIONS);
        } else {
            isAllPermissionsGranted = true;
        }
    } else {
        isAllPermissionsGranted = true;
    }

}



    @Override
    public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
        if (requestCode == REQUEST_CODE_ASK_PERMISSIONS) {
            if (grantResults.length &gt; 0) {
                boolean isAllPermissionsGranted = true;
                for (int i = 0; i &lt; grantResults.length; i++) {
                    if (grantResults[i] != PackageManager.PERMISSION_GRANTED) {
                        isAllPermissionsGranted = false;
                    }
                }

                if (isAllPermissionsGranted) {
                    this.isAllPermissionsGranted = true;
                } else {
                    android.widget.Toast.makeText(this, "Please, grand permissions", android.widget.Toast.LENGTH_LONG).show();
                    showPermissionsDialog();
                }
            }
        }
    }
</code></pre>

<p>Any suggestions on how to fix this? Thanks in advance!</p>

<p><strong>EDIT</strong></p>

<p><a href="https://code.google.com/p/android/issues/detail?id=213120" rel="nofollow noreferrer">Here</a> is the bug report to Google. We're still waiting for the fix from Google.</p>

<p><strong>EDIT 1</strong></p>

<p>This issue has been fixed! </p>