• tonymanou's avatar
    Set fragment title and [un]register callbacks in onStart/onStop · dc316c56
    tonymanou authored
    onStart() is called when the fragment is made visible, whereas onPause()
    is called when the fragment looses focus e.g. if a dialog is shown.
    Thus:
    - there is no need to set the activity's title everytime the fragment
    regains focus,
    - it is better to listen to event tasks and refresh the state of the UI
    while the fragment is actually visible, listening to events until the
    fragment is destroyed is useless: if an event is received between
    onStop() and onDestroy(), there will be some processing but nothing will
    be shown because the fragment is no longer visible.
    dc316c56
Name
Last commit
Last update
..
assets Loading commit data...
java/com/topjohnwu/magisk Loading commit data...
jni Loading commit data...
res Loading commit data...
AndroidManifest.xml Loading commit data...
ic_launcher-web.png Loading commit data...