Skip to content
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

Layout Direction bug after split-screen mode #39

Open
TurKurT656 opened this issue Nov 10, 2020 · 11 comments
Open

Layout Direction bug after split-screen mode #39

TurKurT656 opened this issue Nov 10, 2020 · 11 comments

Comments

@TurKurT656
Copy link

I've set the locale with this code:
Lingver.getInstance().setLocale(requireContext(), "fa")
It use RTL layout direction. Everything works great, but when I use the app in split screen mode and then maximize it again layout direction resets to LTR (but it uses farsi strings).

How can I fix the issue?

@YarikSOffice
Copy link
Owner

YarikSOffice commented Nov 11, 2020

I'd highly appreciate it if you could create a small sample project reproducing the issue. Otherwise, it's hard to find out the cause of the issue without looking into details of your implementation.

Thanks in advance!

@TurKurT656
Copy link
Author

TurKurT656 commented Nov 11, 2020

I've created a sample repo for this:
LingverTest

@TurKurT656
Copy link
Author

Steps to generate bug:

1)
1

2)
2

3)
3

4)
4

5)
5

@hamedsilver
Copy link

I have the same issue too.

@TurKurT656
Copy link
Author

@YarikSOffice did you see the sample?

@vahid-m
Copy link

vahid-m commented Dec 2, 2020

I have the same issue when app goes landscape. The layout direction changed to system setting after changing direction.
The activity config in manifest is android:configChanges="keyboardHidden|orientation|screenSize"

@Kolyall
Copy link

Kolyall commented Jan 12, 2021

UpdateLocaleDelegate class doesn't have this :
config.setLayoutDirection(targetLocale), so just put it to fun updateResources

@YarikSOffice
Copy link
Owner

@Kolyall I don't think I'd help since config.setLayoutDirection is being invoked automatically within config.setLocale/setLocales call.

Screenshot 2021-01-26 at 11 12 42

@YarikSOffice
Copy link
Owner

I've given it a few tries, but haven't found a solution yet. Marking the bug as a known issue for now.

@mnayef95
Copy link

Any update on this?
Because it's happening with the deep link too

@YarikSOffice
Copy link
Owner

I haven't found any solution yet.

If you provide a sample project, I can check whether your issue is related to this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants