title: Marshmallow permission popup hides fragment UI beneath
body: <p>My app asks for permissions in Parent activity while fragment is shown to user already</p>
  
  <p>when app asks for permission the background becomes complete white I want to show permission dialog on top of fragment but not covering full screen </p>
  
  <p>Any ideas?</p>
  
  <p>adding code below</p>
  
  <pre><code>int finePermission = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);
          List&lt;String&gt; listPermissionsNeeded = new ArrayList&lt;&gt;();
          if (finePermission != PackageManager.PERMISSION_GRANTED) {
              listPermissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);
              listPermissionsNeeded.add(Manifest.permission.ACCESS_COARSE_LOCATION);
          }
          if (!listPermissionsNeeded.isEmpty()) {
              ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray(new String[listPermissionsNeeded.size()]), PERMISSION_CODE);
  
          }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/gxojz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gxojz.png" alt="screenshot"></a></p>