title: How to close a Dialog after certain seconds of inactivity?
body: <p>i have an app that contains a dialog</p>
  
  <p>i want to close this dialog after x second, when user haven't any interact with app, like volume seekbar popup(that's open when the volume button clicked, and closed after 2 second of inactivity).
  what is the simplest way to implement this? </p>
  
  <p>thank you </p>