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

Bug when rotating screen with API 28 (PIE) #18

Closed
SergioDelValle opened this issue Jan 28, 2019 · 6 comments
Closed

Bug when rotating screen with API 28 (PIE) #18

SergioDelValle opened this issue Jan 28, 2019 · 6 comments
Assignees

Comments

@SergioDelValle
Copy link

SergioDelValle commented Jan 28, 2019

As mentioned in THIS unity forum post, there's a bug when using this plugin and rotating the screen.

I've attached a repro-project (both unity project and the Android project for the plugin)
Status Bar Unity Test.zip

Unity version es 2018.3.1.f1

It have been tested on Android Emulator (Nexus 5X API 26) and real device (One Plus 3, Api 26 too 8.0.0). In emulator everything works as expected with the exception of API 28, that shows weird behaviour when rotating the screen.

Also added a precompiled apk
Status bar test.zip

@Over17 Over17 self-assigned this Feb 22, 2019
@Over17
Copy link
Owner

Over17 commented Feb 22, 2019

I can confirm the ugly status bars on S9 and Pixel3XL (Android 9). Will see what could be done.
(the emulator may have own issues too)

@SergioDelValle
Copy link
Author

I can confirm the ugly status bars on S9 and Pixel3XL (Android 9). Will see what could be done.
(the emulator may have own issues too)

Thanks a lot for taking the time to look into it :)

@Over17
Copy link
Owner

Over17 commented Feb 22, 2019

I've just created an empty project with the plugin and everything by default (transparent status bar), and it's working greatly on P20pro, Pixel3xl and S9. Must be an opaque status bar issue.

@elberto
Copy link

elberto commented Feb 27, 2019

I have a Fatal error too on Pie prelaunch report (Unity 2018.2.17f1 gradle build)
FATAL EXCEPTION: main Process: com.xxx.xxx, PID: xxx java.lang.RuntimeException: Unable to pause activity {com.xxx.xxx/com.unity3d.nostatusbar.UnityPlayerActivityStatusBar}: java.util.ConcurrentModificationException at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4031) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3986) at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3938) at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:45) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) Caused by: java.util.ConcurrentModificationException at i.put(:com.google.android.gms.dynamite_measurementdynamite@14799081@14.7.99 (100400-223214910):101) at fo.a(:com.google.android.gms.dynamite_measurementdynamite@14799081@14.7.99 (100400-223214910):44) at fl.onActivityPaused(:com.google.android.gms.dynamite_measurementdynamite@14799081@14.7.99 (100400-223214910):53) at android.app.Application.dispatchActivityPaused(Application.java:248) at android.app.Activity.onPause(Activity.java:1731) at com.unity3d.player.UnityPlayerActivity.onPause(Unknown Source:0) at android.app.Activity.performPause(Activity.java:7329) at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1465) at androidx.test.runner.MonitoringInstrumentation.callActivityOnPause(MonitoringInstrumentation.java:190) at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4021)

@ayush-12
Copy link

I've just created an empty project with the plugin and everything by default (transparent status bar), and it's working greatly on P20pro, Pixel3xl and S9. Must be an opaque status bar issue.

I am getting the same issue but in S8 and Android 8.0

@Over17
Copy link
Owner

Over17 commented May 2, 2019

I'm closing this as a duplicate of #19 .

@Over17 Over17 closed this as completed May 2, 2019
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

No branches or pull requests

4 participants