-
Notifications
You must be signed in to change notification settings - Fork 240
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
Only fullscreen opaque activities can request orientation #63
Comments
I had the same issue, the only fix i found for now is to use android support library 26.1.0. Its seems to be a problem with android library 27.0.0. |
@GrayaMax can you tell me more information? |
@JSpiner sorry I don't have more information, i realized i get this error when i upgraded appcompat-v7 to version 27.0.0. So for now i return to version 26.1.0 and it still working. I will post more information if I find more. |
For Android developers, |
Fix that worked for us and add TedPermissionActivity to your manifest where you override android:screenOrientation |
?? can you explain it in more detail? |
@andreas- Great. It works! |
@ParkSangGwon if (ActivityInfo.isFixedOrientation(requestedOrientation) && !fullscreen
&& appInfo.targetSdkVersion >= O) {
throw new IllegalStateException("Only fullscreen activities can request orientation");
} I think some of these solutions are possible.
Give me your opinion. I'll make PR. |
@andreas-
So I'll make PR using 1/3 option. |
…tationi() in builder
#63 fix orientation issue in sdk 26
This issue solved at 842b86f |
Please update new version with this issue, thank you. |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
1+ |
+1 |
same problem. thanks for the explain 👍 |
I'm still getting this problem. Was the fix pushed? |
how to create only |
The problem is fixed in version gun0912.ted:tedpermission:2.2.0 but if you use gun0912.ted:tedpermission:2.2.2 with target version 28 the App will crash. |
version: tedpermission-rx2:2.0.3
phone: emulator Nexus 5X 26, 27
The text was updated successfully, but these errors were encountered: