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

Add preference to enable device rotation #1246

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

syphyr
Copy link
Contributor

@syphyr syphyr commented Jan 30, 2025

Currently, device rotation is locked into portrait for phones and tablets are locked into either portait or landscape, depending on the position upon startup. This new preference allows device rotation for all devices when enabled.

Currently, device rotation is locked into portrait for phones
and tablets are locked into either portait or landscape, depending
on the position upon startup.  This new preference allows device
rotation for all devices when enabled.
@@ -38,24 +38,25 @@ class OrbotActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

/** TODO TODO TODO TODO TODO
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove TODO?

@meenbeese
Copy link
Contributor

I don't really get why we should turn this into a pref. Locking the orientation is bad UX, we should focus on the underlying issue that caused the orientation to not work properly in the first place.

@syphyr
Copy link
Contributor Author

syphyr commented Jan 30, 2025

I don't really get why we should turn this into a pref. Locking the orientation is bad UX, we should focus on the underlying issue that caused the orientation to not work properly in the first place.

I agree that we should also determine the cause of these rotation problems, but this still seems like it could be a preference. Maybe some users want the rotation locked. In the meantime, the rotation issues will never get fixed if it is always locked and can't be tested by users.

@meenbeese
Copy link
Contributor

I don't really get why we should turn this into a pref. Locking the orientation is bad UX, we should focus on the underlying issue that caused the orientation to not work properly in the first place.

I agree that we should also determine the cause of these rotation problems, but this still seems like it could be a preference. Maybe some users want the rotation locked. In the meantime, the rotation issues will never get fixed if it is always locked and can't be tested by users.

Ok seems like a good starting point to me. It also makes testing rotation on the emulator easier. And when the rotation issues are fixed, we can get rid of the pref.

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

Successfully merging this pull request may close these issues.

2 participants