Missing buttons on AlertDialog | Android 7.0 (Nexus 5x)
问题 I am trying to create an AlertDialog but the buttons are not showing. Only seeing this issue in Android 7.0: 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