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

first launch, back to Autorotate fail, but OK after reboot #65

Open
DanielDS-lm opened this issue Nov 20, 2019 · 5 comments
Open

first launch, back to Autorotate fail, but OK after reboot #65

DanielDS-lm opened this issue Nov 20, 2019 · 5 comments

Comments

@DanielDS-lm
Copy link

Hi,
First, thank you for this useful app.
At the first launch, I create a desktop profile, connect the screen, everything is ok, but when I disconnect the screen, the device stay locked in landscape.
But this issue disappear after one reboot.
(rebooting the device after SecondScreen installation doesn't fix, it need a first use, get the issue then reboot the device)

@pepijndevos
Copy link

Same problem here. It appears the app doesn't reset rotation leaving the phone locked in landscape.

@pepijndevos
Copy link

It seems rotation is set here


and unset here

So it looks like some effort is made to restore the rotation, but it's not completely correct.

@pepijndevos
Copy link

Actually that seems not to be the problem. If you do not grant the app permission to force other apps to be in landscape, it actually reverts nicely, this suggests it's a problem with RotationLockService rather than with settings.

As far as I can tell, this service is used via the notificaiton service, which is turned off here:

// Stop NotificationService
Intent serviceIntent = new Intent(this, NotificationService.class);
stopService(serviceIntent);

Uh... I'm not sure how much further I'm going to get without launching the app in a debugger.

@pepijndevos
Copy link

Maybe the problem is that the overlay is removed after setting all the settings back to the default?
So it'd set the orientation back, but the overlay is still there forcing it in landscape, and then the overlay is removed, leaving it in landscape.

No, actually I just tested, and after disabling the profile, a notification is still active that says the apps is drawing an overlay. Tapping the notification to remove the overlay reverts screen orientation to normal.

So yea, basically the overlay is not removed correctly.

@Neitaido
Copy link

Neitaido commented Jul 1, 2022

I also have this issue. But the rotation lock gets actually stuck you can change it but the system settings are overwritten.
Also for me it's fixed after reboot.
I'm using a Fairphone 4 with up to date software.
If you remove the overlay or stop the program the problem stays, that the system settings are not accepted. I even tried to remove the rights of the app. However, no success only reboot fixed it for me.

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

No branches or pull requests

3 participants