Android: ofGetOrientation doesn't get updated when phone is rotated
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- android, cpp
- Domain
- mobile-dev
Research direction
Start with the Android behavior described around ofGetOrientation, ofSetOrientation, and the manifest's configChanges="orientation|screenSize" setting. Reproduce a phone rotation and trace how the window size and orientation are updated; done means ofGetOrientation returns the actual orientation after rotation when no explicit orientation is set.
Written by the indexing model from the issue text.
Description
I have an app where the orientation is not specified (ofSetOrientation is never called) and the manifest has android:configChanges="orientation|screenSize". I can rotate the phone and the openframeworks window gets rotated, and the size gets updated. But the orientation keeps returning OF_ORIENTATION_DEFAULT
Shouldn't the function return the actual orientation?
See also issue #1662 that i think is related
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openframeworks/openFrameworks
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
openframeworks/openFrameworks#6532 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
openframeworks/openFrameworks#6380 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
openframeworks/openFrameworks#4817 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
openframeworks/openFrameworks#8553 · 1 comment ·
-
projectGenerator (vs): addon .c sources compiled as C++, causing unresolved externals (ofxLua: 55) Open
openframeworks/openFrameworks#8546 · 1 assignee ·
All issues in openframeworks/openFrameworks
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·