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

[dev-menu][android] Fix Only fullscreen opaque activities can request orientation #14066

Conversation

lukmccall
Copy link
Contributor

Why

Fixes #13965.
Closes ENG-1795.

How

Due to an issue with API 26, we can't request orientation when the activity is translucent. Unfortunately, this isn't an ideal solution, cause on API 26 users may open the dev-menu in landscape orientation. There may be some visual bugs. So in the future, we may want to add support for landscape orientation. For now, I removed crashes.

Test Plan

  • new project with dev-menu ✅

@linear
Copy link

linear bot commented Aug 16, 2021

ENG-1795 Unable to target Android 8

Developers are unable tp build for Android 8 because of our device orientation logic

#13965

@expo-bot
Copy link
Collaborator

Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines.

I've found some issues in your pull request that should be addressed (click on them for more details) 👇

⚠️ Suggestion: Missing changelog entries


Your changes should be noted in the changelog. Read Updating Changelogs guide and consider (it's optional) adding an appropriate entry to the following changelogs:


Generated by ExpoBot 🤖 against f797841

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Aug 16, 2021
Copy link
Contributor

@esamelson esamelson left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix 👌 -- could you also add a linear task for revisiting support for landscape orientation in this case?

@lukmccall
Copy link
Contributor Author

could you also add a linear task for revisiting support for landscape orientation in this case
Yes 😉 https://linear.app/expo/issue/ENG-1804/support-landspace-orientation

@lukmccall lukmccall merged commit 61c2bc2 into master Aug 17, 2021
@lukmccall lukmccall deleted the @lukmccall/dev-menu/fix-only-opaque-activiries-can-request-orientation branch August 17, 2021 11:16
esamelson pushed a commit that referenced this pull request Sep 2, 2021
…t orientation` (#14066)

# Why

Fixes #13965.
Closes ENG-1795.

# How

Due to an issue with API 26, we can't request orientation when the activity is translucent. Unfortunately, this isn't an ideal solution, cause on API 26 users may open the dev-menu in landscape orientation. There may be some visual bugs. So in the future, we may want to add support for landscape orientation. For now, I removed crashes. 

# Test Plan

- new project with dev-menu ✅
FelipeACP pushed a commit to FelipeACP/expo that referenced this pull request Sep 18, 2021
…t orientation` (expo#14066)

# Why

Fixes expo#13965.
Closes ENG-1795.

# How

Due to an issue with API 26, we can't request orientation when the activity is translucent. Unfortunately, this isn't an ideal solution, cause on API 26 users may open the dev-menu in landscape orientation. There may be some visual bugs. So in the future, we may want to add support for landscape orientation. For now, I removed crashes. 

# Test Plan

- new project with dev-menu ✅
@linear linear bot mentioned this pull request Aug 4, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: suggestions ExpoBot has some suggestions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom dev client crashes on Android 8 device
3 participants