title: Android Permission denied for window type 2007
body: <p>i am using this library in my project : <a href="https://github.com/recruit-lifestyle/FloatingView" rel="nofollow noreferrer">https://github.com/recruit-lifestyle/FloatingView</a></p>
  
  <p>And i am getting this error :
  <a href="https://i.stack.imgur.com/2Ken2.png" rel="nofollow noreferrer">Click here for picture of error</a></p>
  
  <p>this library not working on marshmallow and nougat . </p>
  
  <p>Codes :</p>
  
  <pre><code> final LayoutInflater inflater = LayoutInflater.from(bCon);
    final ImageView iconView = (ImageView)     inflater.inflate(R.layout.widget_chathead, null, false);
  
   final DisplayMetrics metrics = new DisplayMetrics();
           final WindowManager windowManager = (WindowManager)bCon.getSystemService(Context.WINDOW_SERVICE);
           windowManager.getDefaultDisplay().getMetrics(metrics);
           mFloatingViewManager = new FloatingViewManager(bCon, this);
           mFloatingViewManager.setFixedTrashIconImage(R.drawable.ic_trash_fixed);
           mFloatingViewManager.setActionTrashIconImage(R.drawable.ic_trash_action);
           final FloatingViewManager.Options options = new FloatingViewManager.Options();
           options.overMargin = (int) (16 * metrics.density);
           mFloatingViewManager.addViewToWindow(iconView, options);
  </code></pre>