title: Missing buttons on AlertDialog | Android 7.0 (Nexus 5x)
body: <p>I am trying to create an <code>AlertDialog</code> but the buttons are not showing. Only seeing this issue in Android 7.0:</p>
  
  <pre><code>final AlertDialog.Builder builder = new AlertDialog.Builder(this);
  builder.setTitle("This app needs location access");
  builder.setMessage("Please grant location access so this app can detect beacons.");
  builder.setPositiveButton(android.R.string.ok, null);
  builder.setOnDismissListener(new DialogInterface.OnDismissListener() {
      @Override
      @TargetApi(Build.VERSION_CODES.M)
      public void onDismiss(final DialogInterface dialog) {
          requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION}, PERMISSION_REQUEST_COARSE_LOCATION);
      }
  });
  builder.show();
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/AQHLH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AQHLH.png" alt="AlertDialog"></a></p>