You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bigger minimum default frame size for Popup player in relation to screen size (image attached) #13705
UXRelating to improving user experiencefeature requestIssue is related to a feature in the appgood first issueEasy/simple issues perfect for newcomers to get involved in the projectplayerIssues related to any player (main, popup and background)
changed the title [-]Bigger minimum frame size for Popup player in relation to screen size (image attached)[/-][+]Bigger minimum deafult frame size for Popup player in relation to screen size (image attached)[/+]on Jul 20, 2026
changed the title [-]Bigger minimum deafult frame size for Popup player in relation to screen size (image attached)[/-][+]Bigger minimum default frame size for Popup player in relation to screen size (image attached)[/+]on Jul 20, 2026
Hi! I'd like to try working on this one, if that's okay.
I looked at the popup code. The starting width comes from popup_default_width (180dp, or 230dp on sw600dp and up) and doesn't depend on the screen size, so on large screens the popup ends up small (about 18% of the screen width in the screenshot). One idea would be to start at the larger of the current default and a fraction of the screen width, e.g. 1/4.
Before I start on a PR, a few questions:
CONTRIBUTING.md says only bugfix PRs are accepted right now. Is a PR for this welcome at the moment, or should I wait?
Should this only change the size the popup starts with, or also the smallest size it can be resized to (popup_minimum_width)?
One note: the popup size is saved whenever the popup is touched, so people who already have a saved size wouldn't see a different default. I assume that's fine, but I wanted to mention it.
I am not sure. I'd probably keep it popup_minimum_width as it is now. But try to play around with it in a large screen and see if it ever gets too small.
I am not sure about this either, try it out and see what works. But 1/4 seems reasonable.
The sw600dp override I guess was the previous mechanism to try to adapt to larger screen sizes, so remove it now if it's handled by the 1/4-of-the-screen rule. Thanks! I assigned you
Just by pure coincidence I found this because I'm curious of what was changed brought the Android Versions.
android-developers.googleblog.com/2025/01/orientation-and-resizability-changes-in-android-16.html?m=1
And I guess that fits the context. sw600dp gets disgrarded now on very "Pixel rich" Screens in Android 16 and higher.
Maybe that's a reason.
Just wanted to mention it since I strumbled upon it. ^^
Hi! A quick update, and one question before I open the PR.
I tried the 1/4 rule locally: the popup now starts at the larger of the current default (180dp) and 1/4 of the screen width, and I removed the values-sw600dppopup_default_width override as you suggested. popup_minimum_width is unchanged.
Starting width when there is no saved size, before and after:
screen (dp)
before
after
phone portrait 411x891
180dp
180dp
phone landscape 891x411
180dp
~223dp
tablet portrait 600x960
230dp
180dp
tablet portrait 800x1280
230dp
200dp
tablet landscape 1280x800
230dp
320dp
desktop 1920x1080
230dp
480dp
So phones in portrait are unchanged, and landscape phones and larger screens start bigger. Tablets in portrait would start smaller than today (and an unfolded foldable at 841x701dp goes from 230dp to ~210dp), because 1/4 of their width is below the old 230dp. Is that what you'd like, or should I keep 230dp as a lower bound on sw600dp? In that case only the portrait rows would go back to 230dp, and everything else stays the same.
About popup_minimum_width: I didn't touch it. It is 160dp on sw600dp, which is about 12% of a 1280dp wide screen and 8% of a 1920dp wide one, so pinching down can get quite small on very wide screens. I haven't tried that on a real large screen yet.
I haven't tested on a physical device or emulator yet. The numbers above come from running the popup sizing code at those screen sizes with Robolectric. I added a unit test for the width calculation, and the existing unit tests, lint and checkstyle pass locally.
Plugdemholes-Imeanpatchdembugs commented on Nov 26, 2026
UXRelating to improving user experiencefeature requestIssue is related to a feature in the appgood first issueEasy/simple issues perfect for newcomers to get involved in the projectplayerIssues related to any player (main, popup and background)
Activity
[-]Bigger minimum frame size for Popup player in relation to screen size (image attached)[/-][+]Bigger minimum deafult frame size for Popup player in relation to screen size (image attached)[/+][-]Bigger minimum deafult frame size for Popup player in relation to screen size (image attached)[/-][+]Bigger minimum default frame size for Popup player in relation to screen size (image attached)[/+]sakshichitnis27 commentedon Nov 4, 2026
Hi! I'd like to try working on this one, if that's okay.
I looked at the popup code. The starting width comes from
popup_default_width(180dp, or 230dp on sw600dp and up) and doesn't depend on the screen size, so on large screens the popup ends up small (about 18% of the screen width in the screenshot). One idea would be to start at the larger of the current default and a fraction of the screen width, e.g. 1/4.Before I start on a PR, a few questions:
popup_minimum_width)?One note: the popup size is saved whenever the popup is touched, so people who already have a saved size wouldn't see a different default. I assume that's fine, but I wanted to mention it.
ShareASmile commentedon Nov 5, 2026
@sakshichitnis27 Sure, but please wait for the response from team developers about how to go about it.
Stypox commentedon Nov 5, 2026
popup_minimum_widthas it is now. But try to play around with it in a large screen and see if it ever gets too small.The sw600dp override I guess was the previous mechanism to try to adapt to larger screen sizes, so remove it now if it's handled by the 1/4-of-the-screen rule. Thanks! I assigned you
Plugdemholes-Imeanpatchdembugs commentedon Nov 6, 2026
Thanks for doing this @sakshichitnis27 🤗
Just by pure coincidence I found this because I'm curious of what was changed brought the Android Versions.
android-developers.googleblog.com/2025/01/orientation-and-resizability-changes-in-android-16.html?m=1
And I guess that fits the context. sw600dp gets disgrarded now on very "Pixel rich" Screens in Android 16 and higher.
Maybe that's a reason.
Just wanted to mention it since I strumbled upon it. ^^
sakshichitnis27 commentedon Nov 10, 2026
Hi! A quick update, and one question before I open the PR.
I tried the 1/4 rule locally: the popup now starts at the larger of the current default (180dp) and 1/4 of the screen width, and I removed the
values-sw600dppopup_default_widthoverride as you suggested.popup_minimum_widthis unchanged.Starting width when there is no saved size, before and after:
So phones in portrait are unchanged, and landscape phones and larger screens start bigger. Tablets in portrait would start smaller than today (and an unfolded foldable at 841x701dp goes from 230dp to ~210dp), because 1/4 of their width is below the old 230dp. Is that what you'd like, or should I keep 230dp as a lower bound on sw600dp? In that case only the portrait rows would go back to 230dp, and everything else stays the same.
About
popup_minimum_width: I didn't touch it. It is 160dp on sw600dp, which is about 12% of a 1280dp wide screen and 8% of a 1920dp wide one, so pinching down can get quite small on very wide screens. I haven't tried that on a real large screen yet.I haven't tested on a physical device or emulator yet. The numbers above come from running the popup sizing code at those screen sizes with Robolectric. I added a unit test for the width calculation, and the existing unit tests, lint and checkstyle pass locally.
Plugdemholes-Imeanpatchdembugs commentedon Nov 26, 2026
Just dropping by to make sure none of the questions were adressed to me but @Stypox right? xD
Got a bit quiet here. ^^