Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Choose Alignment Functionaltiy broken #191

Closed
jkuester opened this issue Dec 29, 2023 · 12 comments
Closed

Choose Alignment Functionaltiy broken #191

jkuester opened this issue Dec 29, 2023 · 12 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jkuester
Copy link
Owner

The "Choose Alignment" functionality seems broken now. Unfortunately one of the recently merged PRs has probably introduced a regression in this functionality.

@jkuester jkuester added the bug Something isn't working label Dec 29, 2023
@jkuester jkuester added this to the 2.1.0 milestone Dec 29, 2023
@TobiTenno TobiTenno self-assigned this Dec 30, 2023
@TobiTenno
Copy link
Collaborator

i'll take a look at this

@TobiTenno
Copy link
Collaborator

TobiTenno commented Dec 30, 2023

what build/android version is it not working for you on? working on a 3a, api 34 for me.
image

@TobiTenno
Copy link
Collaborator

maybe it's an emulator vs physical difference, i've got it up on a nexus 5, api 21 as well

image

@jkuester
Copy link
Owner Author

Hmm, interesting! I was seeing this not work on emulated Android 14. Will try to test it some more tomorrow with various devices and see if I can get a recreation pattern....

@TobiTenno
Copy link
Collaborator

Hmm, interesting! I was seeing this not work on emulated Android 14. Will try to test it some more tomorrow with various devices and see if I can get a recreation pattern....

I was able to run it on my pixel 7 pro on android 14 as well.

@jkuester
Copy link
Owner Author

Okay, so funny story. I was thinking that the alignment would affect the entire app (so home apps, apps in the drawer, and maybe even the options pages). When I was testing this, I don't think I had added anything to the home screen so, I was just going off the apps in the drawer.

Is it expected that the Choose Alignment setting will only affect the Home Apps? If so, then perhaps this issue should be shifted to making the alignment more consistent across the app...

@TobiTenno
Copy link
Collaborator

ah, i think that would be a big difference in terms of implementation. probably not a huge refactor, but it would be different

@khwolf
Copy link

khwolf commented Dec 31, 2023

For me there is a difference between apps on the home screen and apps in the drawer. And the preferences are again a totally different thing.

The six apps on the home screen are not scrollable and alignment is more or less just optics. In the drawer they are in a list and having them aligned left (where one starts reading a line) makes finding apps a lot easier as if they were centered or right aligned. (OK, RTL-languages are different, but that would be a different thing, at least in my book).

Just my two cents...

@jkuester
Copy link
Owner Author

After tinkering with the alignment feature a bit, I think I agree with you! The home screen alignment is one thing, I may want those centered, etc. But for the options/drawer, I would not necessarily want those centered (even if I had my home screen centered).

My current thinking is that it makes sense to keep the alignment of the home screen as fully adjustable, but then for #49 we should be able to automatically shift the options pages and the app list to the other side for R2L locales...

@TobiTenno
Copy link
Collaborator

i think adjusting automatically for RTL locales definitely makes sense, i do feel that the drawer itself (but not options or settings pages) should be consistent w/ the home page so that swiping into the drawer isn't wholly inconsistent.

i started trying to look into auto-aligning from the language direction. i've not had much luck yet because of how app names seem to localize, but that should be an easy enough default once we get RTL locale app names to show up as the correct locale

@jkuester
Copy link
Owner Author

jkuester commented Jan 2, 2024

👍 sounds good! For eventually supporting RTL, I think we could even just load a property value from the strings.xml that would indicate what the default alignment should be (similar to how we have main_date_format now). But we should worry about that as part of #49.

jkuester added a commit that referenced this issue Jan 2, 2024
Co-authored-by: Joshua Kuestersteffen <jkuester@kuester7.com>
@jkuester
Copy link
Owner Author

jkuester commented Jan 2, 2024

#200

@jkuester jkuester closed this as completed Jan 2, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants