ChromecastSubtitlesFragment
Properties
Functions
Safer activity?.onBackPressedDispatcher?.onBackPressed() with fallback behavior instead of app crash
Attaches an observable to the root binding, instead of the fragment. This is more efficient as it will not call observe if the view is in the background.
Called when the binding is safely created and view is ready. Can be overridden to provide fragment-specific initialization.
Called when the binding is safely created and view is ready. Overload without savedInstanceState for convenience.
Called when the device configuration changes (e.g., orientation). Re-applies system bar padding fixes to the root view to ensure it readjusts for orientation changes.
Cleans up the binding reference when the view is destroyed to avoid memory leaks.
Called after the fragment's view has been created.
Pick a layout resource ID for the fragment.