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

Support SYSTEM_ALERT_WINDOW through Settings.canDrawOverlays() #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Feb 24, 2016

  1. Add @TargetApi to getPermissionsListToRequest()

    This prepares the method to call Settings.canDrawOverlay().
    Dmytro Butemann committed Feb 24, 2016
    Configuration menu
    Copy the full SHA
    c85e1d5 View commit details
    Browse the repository at this point in the history
  2. Check SYSTEM_ALERT_WINDOW with canDrawOverlays()

    checkSelfPermission() always returns PERMISSION_DENIED for
    SYSTEM_ALERT_WINDOW as it is supposedly a dangerous 'special'
    permission which needs to be granted through an Intent.
    Dmytro Butemann committed Feb 24, 2016
    Configuration menu
    Copy the full SHA
    3dfee8d View commit details
    Browse the repository at this point in the history