Detect user inactivity in DialogFragment and logout after some time
<p>There are many activities and dialog fragments in my app. I searched about detecting activity and came to know about <code>onUserInterAction</code> function but it detects in activity for activities only but not while a dialog fragment is open.</p>