title: MANAGE_OVERLAY_PERMISSION - activity not found exception
body: <p>I'm getting following exception:</p>
  
  <pre><code>android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.action.MANAGE_OVERLAY_PERMISSION dat=package:com.my.app }
  at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1816)
  at android.app.Instrumentation.execStartActivity(Instrumentation.java:1525)
  at android.app.Activity.startActivityForResult(Activity.java:4265)
  </code></pre>
  
  <p>This happened in an app that's already a few years old and is working flawlessly. Now I got this exception for an <strong>android 7</strong> device, model <strong>ZUK Z1</strong>. Any ideas? Seems like a problem with the rom. Does this rom offer an alternative way to get overlay drawing permissions?</p>
  
  <p><strong>Edit - here's the function I use to get permissions</strong></p>
  
  <pre><code>public static void checkOverlayPermission(Activity activity)
  {
      if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M &amp;&amp; !Settings.canDrawOverlays(activity))
      {
          Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse("package:" + activity.getPackageName()));
          activity.startActivityForResult(intent, BaseDef.OVERLAY_PERMISSION_REQ_CODE);
      }
  }
  </code></pre>