title: Marshmallow permission : Component Lifecycle
body: <p>Looking into marshmallow permission modal, it calls <code>onRequestPermissionsResult()</code> before <code>onResume()</code> of Activity or Fragment.</p>
  
  <h2>Problem statement :</h2>
  
  <p>If we have any action performed on Action result (i.e. permission allowed), like I want to remove current fragment, then it is not possible because fragment and container activity both are into pause state. So is there any way to call <code>onResume()</code> before <code>onRequestPermissionsResult()</code> ?</p>
  
  <h2>Solution, I am using</h2>
  
  <p>I am using flags for permission, which is being reset on <code>onRequestPermissionsResult()</code> and being verified on <code>onResume()</code>. But this seems a confusing way in my case. </p>