NGPreferenceActivity

public abstract class NGPreferenceActivity extends NGActivity implements PreferenceFragmentCompat.OnPreferenceStartScreenCallback

Base class for NextGIS preferences activity

Fields

mListeners

protected List<OnInvalidatePreferencesListener> mListeners

Methods

addListener

public void addListener(OnInvalidatePreferencesListener listener)

getNewPreferenceHeaderFragment

protected abstract NGPreferenceHeaderFragment getNewPreferenceHeaderFragment()

getNewPreferenceSettingsFragment

protected abstract NGPreferenceSettingsFragment getNewPreferenceSettingsFragment(String subScreenKey)

getPreferenceHeaderFragmentTag

protected abstract String getPreferenceHeaderFragmentTag()

getPreferenceSettingsFragmentTag

protected abstract String getPreferenceSettingsFragmentTag()

getTitleString

public abstract String getTitleString()

invalidatePreferences

public void invalidatePreferences()

isMultiPane

public static boolean isMultiPane(Activity activity)

onCreate

protected void onCreate(Bundle savedInstanceState)

onOptionsItemSelected

public boolean onOptionsItemSelected(MenuItem item)

onPreferenceStartScreen

public boolean onPreferenceStartScreen(PreferenceFragmentCompat preferenceFragmentCompat, PreferenceScreen preferenceScreen)

onStart

protected void onStart()

onStartSubScreen

protected void onStartSubScreen(PreferenceScreen preferenceScreen)

refreshCurrentTheme

protected void refreshCurrentTheme()

removeListener

public void removeListener(OnInvalidatePreferencesListener listener)

replaceHeadersFragment

public void replaceHeadersFragment()

replaceSettingsFragment

public void replaceSettingsFragment(Bundle args)

setCurrentThemePref

protected void setCurrentThemePref()

setTitle

public void setTitle(PreferenceScreen preferenceScreen)