title: Has already been added to the window manager (Used in BroadCastReceiver)
body: <p>Sometimes in some devices I face this crash, has already been added to the window manager</p>
  
  <p>firstly I call <code>initiateViews()</code> then I call ShowView(param)</p>
  
  <pre><code>@SuppressLint("InflateParams")
    public void initiateViews() {
      try {
          LayoutInflater li = (LayoutInflater) context.getSystemService(LAYOUT_INFLATER_SERVICE);
          wm = (WindowManager) context.getSystemService(WINDOW_SERVICE);
          myview = li.inflate(R.layout.monthly_ride_request_layout, null);
          donutProgress = myview.findViewById(R.id.progresstimer);
          progressBar = myview.findViewById(R.id.progress);
          address = myview.findViewById(R.id.address);
          headText = myview.findViewById(R.id.txt_monthly_ride_head);
          headText.setVisibility(View.VISIBLE);
          headText.setText(context.getResources().getString(R.string.monthly_ride));
          km = myview.findViewById(R.id.km);
  
      } catch (Exception e) {
          e.printStackTrace();
  
      }
  </code></pre>
  
  <p>Then I call:</p>
  
  <pre><code>  private void ShowView(WindowManager.LayoutParams params) {
      try {
              viewhandler.postDelayed(new Runnable() {
                  @Override
                  public void run() {
                      isRingingViewVisible = true;
                      wm.addView(myview, params);
                      StartTimer();
                  }
              },1500);
  
      } catch (Exception e) {
          e.printStackTrace();
  
      }
  }
  </code></pre>
  
  <p>For adding Params</p>
  
  <pre><code>@RequiresApi(api = Build.VERSION_CODES.O)
  private WindowManager.LayoutParams getLayoutParamsForOreoOrGreater() {
      WindowManager.LayoutParams params;
      params = new WindowManager.LayoutParams(
              ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT,
              WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY,
              WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
                      | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
                 /*         | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
                          | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
                          | WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR*/
              , PixelFormat.TRANSLUCENT);
      params.gravity = Gravity.TOP;
      return params;
  }
  </code></pre>
  
  <p>Application Crash in this line <code>wm.addView(myview, params);</code></p>