26F-Studio / Techmino

Techmino:方块研究所唯一官方仓库(Github)
https://www.studio26f.org
GNU Lesser General Public License v3.0
551 stars 67 forks source link

Portrait mode doesn't stick between sessions #1148

Open Elaborendum opened 2 months ago

Elaborendum commented 2 months ago
  1. Enable portrait mode
  2. Restart the app
  3. There's a chance its in portrait mode, most of the time (for me) it isn't.
  4. Repeat the process relaunching the app until its in portrait mode

Even if its finally launched in portrait mode, next time I open the app its back to landscape and I have to relaunch it multiple times for it to turn portrait. The check for portrait mode never unticks on its own either, it can be clearly on landscape while portrait is enabled in the settings since before the last launch.

Not-A-Normal-Robot commented 2 months ago

I wasn't able to verify this bug happening on 0.17.21 (Redmi 9, MIUI 13, Android 12)

Are you sure you have the latest version of Techmino?

Also if you're on iOS have you tried orienting your phone differently when opening the app?

shoucandanghehe commented 2 months ago

This mode always has some magical behavior lol Especially Apple devices

Elaborendum commented 2 months ago

Forgot to specify my setup. I'm on version 0.17.21, on a Galaxy A12, OneUI 5.1, Android 13. Just installed right it from GitHub. Still happens even if I have locked orientation or not.

The reddit thread I originally found Techmino through also had a user with the same problem https://reddit.com/r/Tetris/comments/11466xf/is_there_a_good_app_for_android/j8vxys0/?context=3. But its from one year ago.

shoucandanghehe commented 2 months ago

I think it may only on oneui, is there anyone else who can test it?

ImpleLee commented 2 months ago

Cannot verify on my device (0.17.21, Galaxy S23, OneUI 6.1, Android 14).

Not-A-Normal-Robot commented 2 months ago

I decided to try reproducing this bug one more time for some reason, and was finally able to confirm it exists.

Screenshot_2024-08-31-13-59-32-911_org.f26_studio.Techmino.jpg

Screenshot_2024-08-31-14-01-33-764_org.f26_studio.Techmino.jpg

It seems to be a lot rarer than how OP suggested it was. Or one of us got unlucky.

Maybe it has to do with how quick you relaunch Techmino?

Elaborendum commented 2 months ago

It happens consistently for m. First time it took like 4 relaunches to turn it portrait. Played a bit, then closed the app. Tried launching it again a few hours later and it was back to landscape and relaunched it a bunch of times before it went back to portrait.

Not-A-Normal-Robot commented 2 months ago

If anyone knows the superuser key and experiences this bug, I'm curious what the output of this command would be, under superuser mode in the Techmino terminal:

#return fs.read('conf/settings'):find('"portrait":true')

When it's working properly it returns a positive integer. When it isn't it may return -1... or not.

Nevermind, when portrait mode isn't working it still returns a positive integer... That's really strange.