QrAndBarcodeScanner
QrAndBarcodeScanner copied to clipboard
App gets rotated to landscape orientation if rotation lock is locked to portrait
I have a Xiaomi phone with MIUI, and I usually have rotation lock turned on while I don't need automatic rotation. The way it works for me is that when I turn on the rotation lock, the system tries to enforce the rotation that was at that time for every app that has a layout for that. Now I've been using my phone, browsing the F-droid store for any new apps (this one was an exceptionally good find, though!), and after I've seen your app, I've installed it and opened it. On opening the app started with landscape layout, and since it happened earlier with multiple apps (not much, at most 5 in the last few years), I immediately tried disabling the rotation lock, to which the app has changed to portrait orientation. If then I turn the rotation lock back on, it will get rotated to landscape orientation again, but only for this app, so if I switch to Firefox, F-droid or any other app it will stay in portrait orientation.
One other app with this bug that I remember now is the system gallery app. If I open the app itself it's ok, but when I open a picture it gets rotated to landscape. The difference is that for some unknown reason it has it's own built-in rotation lock feature, so what I can do is turn off the system rotation lock (so the app is now in portrait), turn on the rotation lock in the app, and then if I turn the system rotation lock back on then it will stay in portrait mode.
How could I help debug the problem? I have some Android development experience, but I honestly don't have much idea on where to start debugging, other than taking a look at the manifest file to see if there's any property set to handle config changes differently
Otherwise your app is really cool! When I read the description ("QR and barcode scanner with all the features you need") I didn't want to believe it, because there are so many not so good qr scanners out there with a similar statement, but the screenshots got me to try it out, and I'm amazed! It indeed has all the features (ok, there's one thing, but it's an other issue), it looks good, and it's very small in apk size. Keep up the good work!
Lol we posted the same report at exactly the same time! Needs attention indeed! :)
Lol, what a coincidence :D Are you a new user too?
Also, I have been thinking about what may have caused it, and do you happen to use the Xposed framework?
Also, I have been thinking about what may have caused it, and do you happen to use the Xposed framework?
Rooted, but no Xposed. I guess the dev just overlooked it, no "cause". Must be using his phone with Screen Rotation unlocked (always rotate) and never notices the issue :) Just a guess!
Hi guys, thank you for reporting a bug. Yes, I overlooked the issue, hopefully I will fix this bug in the next release.
Also, I have been thinking about what may have caused it, and do you happen to use the Xposed framework?
Rooted, but no Xposed. I guess the dev just overlooked it, no "cause". Must be using his phone with Screen Rotation unlocked (always rotate) and never notices the issue :) Just a guess!
Was asking because I have an Xposed module installed that's named "Forced Screen Rotation", and I have it set to replace the "normal" (locked?) orientation to landscape. I was surprised when I noticed, because I don't remember why did I need that, and also because it only seems to work for a few apps. After whitelisting "Qr And Barcode Scanner" it's working as expected
Should be fixed in v1.5
I just installed v1.7 from fdroid and experienced the same issue.
I have screen rotation locked to portrait mode but when I first start the qr app while having the phone sideways, it opens in landscape mode. (whereas any other app correctly opens in portrait mode).
My phone runs on Android One, is not rooted and has nothing unusual that could affect the OS behaviour. So there must be something with this app.
Appreciate if you could reopen this issue, otherwise I'd need to open a duplicate one.