-
-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move grid direction option to DisplayPreferencesScreen #830
Conversation
I'm not sure if we should make it the default, after using the vertical grids for a bit I noticed that photo libraries in vertical mode don't work properly, you can scroll both vertically and horizontally. Moving it to display preferences is a great idea though. |
app/src/main/java/org/jellyfin/androidtv/ui/browsing/DisplayPreferencesScreen.kt
Outdated
Show resolved
Hide resolved
Do photo libraries use a square aspect ratio? I only have tv, movies, collections, and a small music library, so those were the only ones I could properly test. The way I did it requires libraries with square cards to be explicitly stated, I just wasn’t sure which to include. Also, if there are any libraries that use a mix of different aspect ratios for the default image, we could hide the grid direction option for that library type, but I’m not sure which, if any, libraries do that. |
Nope, the width changes based on the aspect ratio of the image. For vertical grids this should be changed to change the height instead.
I'm not sure either what sizes all types of libraries use. That's why I think it's better to leave the default option to horizontal for now and when we're confident all libraries use correct sizes we could change it. |
app/src/main/java/org/jellyfin/androidtv/ui/browsing/StdGridFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/ui/browsing/DisplayPreferencesScreen.kt
Outdated
Show resolved
Hide resolved
Btw, merge conflict was caused by #824 but should be easy to fix with a rebase. |
5366798
to
db3a078
Compare
Don't overwrite the aspect ratio for videos Change return value of ImageHelper.getImageAspectRatio to not be nullable Fixes jellyfin#1192 Possibly a regression from jellyfin#830
Changes
Enable the vertical grid by default