Files
Magisk/app/src/main
tonymanou dc316c5669 Set fragment title and [un]register callbacks in onStart/onStop
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.
2017-01-15 02:37:40 +08:00
..
2016-11-22 13:45:26 +08:00
2016-11-23 17:25:41 +08:00
2017-01-11 19:10:30 +08:00
2016-12-23 23:05:41 +08:00
2016-12-27 04:41:00 +08:00