Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
eu.intermodalics.tango_ros_streamer.activities.SettingsActivity Class Reference
Inheritance diagram for eu.intermodalics.tango_ros_streamer.activities.SettingsActivity:
Inheritance graph
[legend]

List of all members.

Classes

class  SettingsPreferenceFragment

Public Member Functions

void onBackPressed ()
void onSharedPreferenceChanged (SharedPreferences sharedPreferences, final String key)
void startAboutActivity ()

Static Public Attributes

static final String NEW_UUIDS_NAMES_MAP_ALERT = "new_uuids_names_map_alert"

Protected Member Functions

boolean isValidFragment (String fragmentName)
void onCreate (Bundle savedInstanceState)
void onDestroy ()
void onStart ()

Private Member Functions

void restartTango ()
void updateMapChooserPreference ()

Static Private Member Functions

static void bindPreferenceSummaryToValue (Preference preference)

Private Attributes

BroadcastReceiver mNewUuidsNamesMapAlertReceiver
SettingsPreferenceFragment mSettingsPreferenceFragment
SharedPreferences mSharedPref
HashMap< String, String > mUuidsNamesMap

Static Private Attributes

static
Preference.OnPreferenceChangeListener 
sBindPreferenceSummaryToValueListener
static final String TAG = SettingsActivity.class.getSimpleName()

Detailed Description

A PreferenceActivity that presents a set of application settings. On handset devices, settings are presented as a single list. On tablets, settings are split by category, with category headers shown to the left of the list of settings.

See Android Design: Settings for design guidelines and the Settings API Guide for more information on developing a Settings UI.

Definition at line 54 of file SettingsActivity.java.


Member Function Documentation

static void eu.intermodalics.tango_ros_streamer.activities.SettingsActivity.bindPreferenceSummaryToValue ( Preference  preference) [inline, static, private]

Binds a preference's summary to its value. More specifically, when the preference's value is changed, its summary (line of text below the preference title) is updated to reflect the value. The summary is also immediately updated upon calling this method. The exact display format is dependent on the type of preference.

See also:
sBindPreferenceSummaryToValueListener

Definition at line 102 of file SettingsActivity.java.

boolean eu.intermodalics.tango_ros_streamer.activities.SettingsActivity.isValidFragment ( String  fragmentName) [inline, protected]

This method stops fragment injection in malicious applications. Make sure to deny any unknown fragments here.

Definition at line 255 of file SettingsActivity.java.

Definition at line 285 of file SettingsActivity.java.

void eu.intermodalics.tango_ros_streamer.activities.SettingsActivity.onCreate ( Bundle  savedInstanceState) [inline, protected]
void eu.intermodalics.tango_ros_streamer.activities.SettingsActivity.onSharedPreferenceChanged ( SharedPreferences  sharedPreferences,
final String  key 
) [inline]

Implements OnSharedPreferenceChangeListener to trigger a snackbar if the change requires to restart the app to be applied.

Definition at line 118 of file SettingsActivity.java.

Definition at line 187 of file SettingsActivity.java.

Returns to Running Acitivity and restart Tango.

Definition at line 303 of file SettingsActivity.java.

Definition at line 295 of file SettingsActivity.java.

Definition at line 232 of file SettingsActivity.java.


Member Data Documentation

Definition at line 62 of file SettingsActivity.java.

Definition at line 60 of file SettingsActivity.java.

Definition at line 59 of file SettingsActivity.java.

Definition at line 61 of file SettingsActivity.java.

Definition at line 57 of file SettingsActivity.java.

Initial value:
 new Preference.OnPreferenceChangeListener() {
        @Override
        public boolean onPreferenceChange(Preference preference, Object value) {
            String stringValue = value.toString();

            if (preference instanceof ListPreference) {
                
                
                ListPreference listPreference = (ListPreference) preference;
                int index = listPreference.findIndexOfValue(stringValue);

                
                preference.setSummary(
                        index >= 0
                                ? listPreference.getEntries()[index]
                                : null);
            } else {
                
                
                preference.setSummary(stringValue);
            }
            return true;
        }
    }

A preference value change listener that updates the preference's summary to reflect its new value.

Definition at line 68 of file SettingsActivity.java.

final String eu.intermodalics.tango_ros_streamer.activities.SettingsActivity.TAG = SettingsActivity.class.getSimpleName() [static, private]

Definition at line 56 of file SettingsActivity.java.


The documentation for this class was generated from the following file:


TangoRosStreamer
Author(s):
autogenerated on Thu Jun 6 2019 19:49:58