lczx / watcher

(Almost) a screen capture overlay for Android
MIT License
1 stars 0 forks source link

Overlay permission #2

Open csolorio opened 5 years ago

csolorio commented 5 years ago

I've been testing the app but no matter how many times I grant the overlay permission to the app, I can see - while debugging - that the 'Settings.canDrawOverlays(this)' always returns false. So I can't see much else...

Additionally, when the permission is granted (and the app detects that it doesn't have the permission), any attempt to check the permission slider results in a crash. I already tried with two emulated and a physical devices running Android O8 API 26) (where I have tested normally another overlay apps).

lczx commented 5 years ago

Sadly I do not have an Oreo device at hand but I have managed to reproduce your problem on the emulator (it seems that you incurred in this Android bug affecting API 26 only) and updated the check accordingly in commit 8c6907a.

I have also found a serious usability issue of the app on Android 8.0+ (at least in the emulator): the overlay over the status bar seems no longer clickable - so I moved it down as a temporary workaround.

Both fixes are in branch fix-2; check it out if you have some time and let me know.