-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
base: master
Are you sure you want to change the base?
Conversation
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.
183714a
to
02fbbde
Compare
@@ -38,24 +38,25 @@ class OrbotActivity : BaseActivity() { | |||
override fun onCreate(savedInstanceState: Bundle?) { | |||
super.onCreate(savedInstanceState) | |||
|
|||
/** TODO TODO TODO TODO TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove TODO?
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. |
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.