title: On Android 11 or higher - How to change the style or the height of the dialog for the MediaStore.createTrashRequest?
body: <p>When deleting files - my app need to ask the system for a deletion dialog using the &quot;MediaStore.createTrashRequest&quot;
  It works fine on portrait mode but on landscape - the dialog is too big and the &quot;approve&quot; button is hidden.</p>
  <p>If I use the other &quot;MediaStore.createDeleteRequest&quot;(no recycle bin) option -&gt; the text is shorter and the button appears.</p>
  <p>I have tried changing dialog style in the theme -&gt; it had no effect.
  I guess that I need to style the height of the dialog for the MediaStore.createTrashRequest ? how - this dialog is not created by my app but the o.s.</p>
  <p>If I select 2 files - the dialog that the createTrashRequest creates uses several small thumbnails instead of the big one and so - the button appears.</p>
  <p>I am using &quot;Material Design&quot;.</p>
  <pre><code> PendingIntent pi = MediaStore.createTrashRequest(mContext.getContentResolver(), array_list, true);
   IntentSender sender = pi.getIntentSender();
   if (sender != null)
      startIntentSenderForResult(sender, REQUEST_PERM_DELETE, null, 0, 0, 0, null);
  </code></pre>
  <p><a href="https://i.stack.imgur.com/P74IZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P74IZ.png" alt="enter image description here" /></a></p>