title: WRITE_SETTINGS intent closing after getting permission
body: <p>I want to close the WRITE_SETTINGS permission intent as the user allows the permission. I have seen some apps doing this like getting permission and closing the intent automatically.</p>
  <p>How I can achieve this functionality?</p>