Comments (9)
Hi. Which version of Android are you using?
Also, can you attach a screenshot or a GIF of the problem occurring?
from hover.
Android 6.0.1
Nexus 6
No matter I click deny or allow, the "Screen overlay detected" came up.
from hover.
I found out that Facebook Messenger has a similar hover menu. But it doesn't cause this problem.
from hover.
How do I fix this problem on my cell phone.
Its not letting me do anything.
from hover.
I'm trying to reproduce. A few more questions:
- are you both running the latest version of the library, 0.9.7?
- what did you do before this happened? Did you already enable the overlay in Settings for your app? Are there any other steps that I might need to know?
- was the Hover menu already launched and then your app asked for permissions for something else?
- what is your target API version for your app?
- where is your logic that asks for the overlay permission?
from hover.
Nevermind, I got the problem to repro.
Please read this:
https://www.howtogeek.com/271519/how-to-fix-the-screen-overlay-detected-error-on-android/
It doesn't look like there is anything we can do about this, it's a "feature" in Android M. My recommendation would be to have your app close the Hover menu when you need to request permissions, and then open the Hover menu back up when the permission interaction is done.
I'll add something the roadmap to see if I can make this easier to do.
Please let me know if you have any further questions/comments on the issue.
from hover.
Note that I mentioned that Facebook Messenger has a similar hover menu but it doesn't cause this problem.
I think the reason for this is that HoverMenuView is a full screen layout whether expanded or collapsed.
I tried to add a ImageView to WindowManager on a demo project, if the imageview is not on top of the premission dialog, it will be fine.
But if on top of the premission dialog, the "Screen overlay detected" came up.
from hover.
If that's the case then Hover will continue to have this issue, at least for some time, because changing to a non-fullscreen layout would require a major modification to the structure of the menu itself. Even in the large refactor that I have coming soon, the menu remains fullscreen.
I'll consider modifying the layout to deal with this problem at some point, but it won't be soon. Android O will require that overlays use a different window type, so maybe if we're lucky it won't be a problem any more. We'll see.
from hover.
Alright. I realized that too. It's a huge job to make Hover non-fullscreen even just when collapsed.
from hover.
Related Issues (20)
- migrate to Android X
- [HELP] Issue with SurfaceView HOT 5
- hoverView is invisible yet present there and its clickable.
- How to increase hover tab size HOT 1
- Consultation about bubble
- Settting position of Hover programmatically
- Back button closes the EditText's keyboard and whole menu instead of simply returning to menu view.
- Transition to AndroidX HOT 1
- Change the background color HOT 2
- Statusbar hover full screen HOT 1
- Bug problem with the management of screen spaces
- How to close HOT 2
- removing selected section causes invisible FAB (still draggable) HOT 1
- Hard drag to bottom permanently removes hover menu.
- Expo.io && Hover HOT 1
- How to change onTap?
- selectable text does not open a Context Menu
- Class does not implement the equals method
- Can't import HOT 6
- When I set an image as drawable icon for the tab, it keeps resizing itself
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hover.