public class NightVisionPreferenceFragment extends AtakPreferenceFragment implements android.preference.Preference.OnPreferenceClickListener, android.preference.Preference.OnPreferenceChangeListener
_externalPreferenceBundle, TAG
Constructor and Description |
---|
NightVisionPreferenceFragment() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isServiceRunning(android.content.Context context)
Checks if the service sent in is running state we need to use this method instead
of the original enum because we are calling from different packages and applciations that
does not access this applications structure
|
void |
onCreate(android.os.Bundle savedInstanceState) |
void |
onDestroy() |
boolean |
onPreferenceChange(android.preference.Preference preference,
java.lang.Object newValue) |
boolean |
onPreferenceClick(android.preference.Preference preference)
Called when a Preference has been clicked.
|
addPreferences, addPreferencesFromIntent, addPreferencesFromResource, checkKeyGuard, checkScreenLock, findPreference, getOrientation, getResourceID, getSubTitle, getSubTitle, getSubTitle, getSummary, getSummaryID, index, index, index, index, onResume, printBundleContents, removeMainWindowActivity, removePreference, setContext, setMainWindowActivity, setOrientation, setOrientation, setPreferenceState, setSoftKeyIllumination, showScreen, showScreen
getPreferenceManager, getPreferenceScreen, onActivityCreated, onActivityResult, onCreateView, onDestroyView, onPreferenceTreeClick, onSaveInstanceState, onStart, onStop, onViewCreated, setPreferenceScreen
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, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isStateSaved, isVisible, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onTrimMemory, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
public void onCreate(android.os.Bundle savedInstanceState)
onCreate
in class AtakPreferenceFragment
public void onDestroy()
onDestroy
in class AtakPreferenceFragment
public boolean onPreferenceClick(android.preference.Preference preference)
onPreferenceClick
in interface android.preference.Preference.OnPreferenceClickListener
preference
- The Preference that was clicked.public static boolean isServiceRunning(android.content.Context context)
context
- the context for obtaining the activity service.public boolean onPreferenceChange(android.preference.Preference preference, java.lang.Object newValue)
onPreferenceChange
in interface android.preference.Preference.OnPreferenceChangeListener