SettingsFragment

class SettingsFragment : PreferenceFragmentCompat, GarbageView

A fragment allowing users to change application settings.

Constructors

SettingsFragment
Link copied to clipboard
fun SettingsFragment()

Functions

clearGarbage
Link copied to clipboard
open override fun clearGarbage()

Set all listeners, ViewModels and shared references to null.

onCreatePreferences
Link copied to clipboard
open override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?)

Called when the fragment is created, calls setPreferencesFromResource to set the preferences

onCreateView
Link copied to clipboard
open override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View?

Called on fragment view creation, returns an inflated view of this fragment.

onViewCreated
Link copied to clipboard
open override fun onViewCreated(view: View, savedInstanceState: Bundle?)

Called when the fragment view has been created, initializes the views and listeners.

removeThisFragment
Link copied to clipboard
private fun removeThisFragment()

Removes this fragment

Properties

aboutButton
Link copied to clipboard
private var aboutButton: Preference? = null
containerView
Link copied to clipboard
private lateinit var containerView: CardView

The container view for the fragment

mFragmentBackground
Link copied to clipboard
private lateinit var mFragmentBackground: FrameLayout

The dark background behind the fragment, calls removeThisFragment on click