public class SettingsFragment
extends android.support.v7.preference.PreferenceFragmentCompat
implements android.content.SharedPreferences.OnSharedPreferenceChangeListener, org.researchstack.backbone.storage.file.StorageAccessListener
android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceDisplayDialogCallback, android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceStartFragmentCallback, android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceStartScreenCallback
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_AUTO_LOCK_ENABLED |
static java.lang.String |
KEY_AUTO_LOCK_TIME |
static java.lang.String |
KEY_CHANGE_PASSCODE |
static java.lang.String |
KEY_GENERAL |
static java.lang.String |
KEY_JOIN_STUDY |
static java.lang.String |
KEY_LEAVE_STUDY |
static java.lang.String |
KEY_PRIVACY |
static java.lang.String |
KEY_PRIVACY_POLICY |
static java.lang.String |
KEY_PROFILE |
static java.lang.String |
KEY_PROFILE_BIRTHDATE |
static java.lang.String |
KEY_PROFILE_NAME |
static java.lang.String |
KEY_REMINDERS |
static java.lang.String |
KEY_REVIEW_CONSENT |
static java.lang.String |
KEY_SHARING_OPTIONS |
static java.lang.String |
KEY_SOFTWARE_NOTICES |
static java.lang.String |
KEY_VERSION |
static java.lang.String |
PASSCODE |
Constructor and Description |
---|
SettingsFragment() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatSharingOption(java.lang.String option) |
java.lang.String |
getVersionString() |
void |
onActivityResult(int requestCode,
int resultCode,
android.content.Intent data) |
void |
onCreatePreferences(android.os.Bundle bundle,
java.lang.String s) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onDataAuth() |
void |
onDataFailed() |
void |
onDataReady() |
boolean |
onPreferenceTreeClick(android.support.v7.preference.Preference preference) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key) |
void |
showPrivacyPolicy() |
void |
showSoftwareNotices() |
addPreferencesFromResource, findPreference, getCallbackFragment, getListView, getPreferenceManager, getPreferenceScreen, onActivityCreated, onBindPreferences, onCreate, onCreateAdapter, onCreateLayoutManager, onCreateRecyclerView, onDestroyView, onDisplayPreferenceDialog, onNavigateToScreen, onSaveInstanceState, onStart, onStop, onUnbindPreferences, setDivider, setDividerHeight, setPreferenceScreen, setPreferencesFromResource
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isVisible, onAttach, onAttach, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onHiddenChanged, onInflate, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onViewCreated, onViewStateRestored, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, toString, unregisterForContextMenu
public static final java.lang.String KEY_PROFILE
public static final java.lang.String KEY_PROFILE_NAME
public static final java.lang.String KEY_PROFILE_BIRTHDATE
public static final java.lang.String KEY_REMINDERS
public static final java.lang.String KEY_PRIVACY
public static final java.lang.String KEY_PRIVACY_POLICY
public static final java.lang.String KEY_REVIEW_CONSENT
public static final java.lang.String KEY_SHARING_OPTIONS
public static final java.lang.String KEY_AUTO_LOCK_ENABLED
public static final java.lang.String KEY_AUTO_LOCK_TIME
public static final java.lang.String KEY_CHANGE_PASSCODE
public static final java.lang.String KEY_GENERAL
public static final java.lang.String KEY_SOFTWARE_NOTICES
public static final java.lang.String KEY_LEAVE_STUDY
public static final java.lang.String KEY_JOIN_STUDY
public static final java.lang.String KEY_VERSION
public static final java.lang.String PASSCODE
public void onCreatePreferences(android.os.Bundle bundle, java.lang.String s)
onCreatePreferences
in class android.support.v7.preference.PreferenceFragmentCompat
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
onCreateView
in class android.support.v7.preference.PreferenceFragmentCompat
public boolean onPreferenceTreeClick(android.support.v7.preference.Preference preference)
onPreferenceTreeClick
in interface android.support.v7.preference.PreferenceManager.OnPreferenceTreeClickListener
onPreferenceTreeClick
in class android.support.v7.preference.PreferenceFragmentCompat
public void onActivityResult(int requestCode, int resultCode, android.content.Intent data)
onActivityResult
in class android.support.v4.app.Fragment
public void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public java.lang.String formatSharingOption(java.lang.String option)
public java.lang.String getVersionString()
public void showPrivacyPolicy()
public void showSoftwareNotices()
public void onDataReady()
onDataReady
in interface org.researchstack.backbone.storage.file.StorageAccessListener
public void onDataFailed()
onDataFailed
in interface org.researchstack.backbone.storage.file.StorageAccessListener
public void onDataAuth()
onDataAuth
in interface org.researchstack.backbone.storage.file.StorageAccessListener