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

Black screen in landscape view. Realme 5 phone android 9 #54

Open
m2ahmed opened this issue Apr 22, 2020 · 3 comments
Open

Black screen in landscape view. Realme 5 phone android 9 #54

m2ahmed opened this issue Apr 22, 2020 · 3 comments

Comments

@m2ahmed
Copy link

m2ahmed commented Apr 22, 2020

Screenshot_2020-04-24-16-04-33-97_aaa789bfc88e2293491d9bc5f11f504a 1

@eschao
Copy link
Owner

eschao commented May 29, 2020

I don't have such device, I will try it on simulator

@m2ahmed
Copy link
Author

m2ahmed commented Jun 4, 2020

Try to resolve issues on physical latest version devices because your app works well on emulators but gives results like above on real devices.

@NimeshHirpara
Copy link

Comments following lines in SampleActivity is working for me

if (Build.VERSION.SDK_INT < 16) {
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                    WindowManager.LayoutParams.FLAG_FULLSCREEN);
        } else {
            mPageFlipView.setSystemUiVisibility(
                    View.SYSTEM_UI_FLAG_FULLSCREEN |
                            View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
                            View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
                            View.SYSTEM_UI_FLAG_IMMERSIVE |
                            View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
        }

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

3 participants