java.lang.Object | |
↳ | com.android.contacts.StickyTabs |
Utility class to annotate Intents with extra data required for the Sticky-Tab behavior, which allows storing the app to go to the last tab that was used to make a call. Also handles saving and restoring the tab index
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | PREFERENCES_NAME | Name of the shared setting. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the selected tab or -1 if no tab is stored
| |||||||||||
Returns the previously persisted tab or defaultValue if nothing is saved
| |||||||||||
Persists the tab as it is stored in the Intent.
| |||||||||||
Persists the given tabIndex.
| |||||||||||
Writes the selected tab to the passed intent
| |||||||||||
Writes the selected tab to the passed intent by retrieving it from the originalIntent that
was passed in
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Name of the shared setting. We are using the same name as in FroYo to prevent having an orphan here
Returns the previously persisted tab or defaultValue if nothing is saved
Persists the tab as it is stored in the Intent. If the intent does not have a tab index, the persisted value is not overriden
Persists the given tabIndex. If the value is -1, the previously persisted value is not overriden
Writes the selected tab to the passed intent
intent | The intent to modify. |
---|---|
tabIndex | The tab index to write to the intent |
Writes the selected tab to the passed intent by retrieving it from the originalIntent that was passed in
intent | The intent to modify. |
---|---|
originalIntent | The intent where the tab index should be read from |