Skip to content

Lock ChallengeActivity to portrait orientation#126

Merged
msbelaid merged 1 commit intomsbelaid:masterfrom
evanofficial:fix/challenge-portrait-lock
Mar 30, 2026
Merged

Lock ChallengeActivity to portrait orientation#126
msbelaid merged 1 commit intomsbelaid:masterfrom
evanofficial:fix/challenge-portrait-lock

Conversation

@evanofficial
Copy link
Copy Markdown
Contributor

Summary

  • Adds android:screenOrientation="portrait" to ChallengeActivity in the manifest
  • Prevents screen rotation from recreating the activity, which was resetting the challenge and its difficulty

This is the approach @msbelaid suggested in #87 (comment) as the best solution for now. Portrait mode also makes sense UX-wise since the number pad input works best in that orientation.

Fixes #87

Prevents the challenge from resetting when the user rotates the device,
which was allowing the difficulty to be bypassed.

Fixes msbelaid#87
@msbelaid
Copy link
Copy Markdown
Owner

Thanks for your contribution 🙏

@msbelaid msbelaid merged commit 2c09eba into msbelaid:master Mar 30, 2026
6 checks passed
@evanofficial evanofficial deleted the fix/challenge-portrait-lock branch March 30, 2026 19:05
@evanofficial
Copy link
Copy Markdown
Contributor Author

Thanks for your contribution 🙏

Glad I could help out! cool app btw.

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.

Challenge can be reset with autorotate

2 participants