• Home
  • History
  • Annotate
  • only in /frameworks/base/core/java/android/preference/
History log of /frameworks/base/core/java/android/preference/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d696476fb31a203db38c7c31c347b27c8fda84ef 16-Feb-2018 Beverly <beverlyt@google.com> System sounds get its own dnd toggle

- Added logic for streams to be muted by dnd (unassociated with ringer)

Test: runtest -x frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ZenModeHelperTest.java
Bug: 73362490
Change-Id: I1101e67282f7331497e91eb510d2bf4f1ea6b4b1
eekBarVolumizer.java
40ce09581d8ef85ef9d5222d9b7c875429e913d1 13-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add OWNERS for preferences"
a137711868f5cc8022743e4fb96bb5b52b6108b4 13-Feb-2018 Clara Bayarri <clarabayarri@google.com> Add OWNERS for preferences

Test: none
Change-Id: I1679ba3f10a89a4076888936aebf067c371bcf27
WNERS
925cde8f745c4cf946d0e215d306d2b134ca44de 23-Jan-2018 Beverly <beverlyt@google.com> Alarms and Media visibly muted in PriorityOnly dnd

- if alarms and/or media cannot pass dnd and the phone is currently
in priority only dnd, then the alarm and/or media volume stream
will appear muted in the volume dialog and sound settings
(Settings > Sound)
- if all behavior for priority only dnd is not allowed to bypass dnd
(discluding alarms and media), then ringer is muted when priority-only
dnd mode is on. If a user clicks this ringer in the volume dialog, then
dnd ends
- Updated default zen config to version 3 (added alarms and media)
Test: manually toggle alarms + media in Settings > Sound > DND >
Behavior, toggle on/off dnd and then look at volume dialog and
volume bars in Settings > Sound
Test: runtest --path cts/tests/tests/media/src/android/media/cts/AudioManagerTest.java
Fixes: 72052742

Change-Id: Ia9e809ec2be93cb5a9ba6518dce04bf3ce45110b
eekBarVolumizer.java
0a1feb819234ae7fc8cc32aa1dc5929823b0a5bc 13-Nov-2017 Ian Lake <ilake@google.com> Deprecate framework Fragments and Loaders

Redirect developers to use the Support Library
versions of Fragments and Loaders to ensure that
they get consistent behavior across versions of
Android and all devices as well as access to
Lifecycle improvements.

Test: Confirmed APIs deprecated in current.txt
BUG: 68381801
Change-Id: I58ec599e557fc93c8547c45ba7c9ced96b0c8616
referenceFragment.java
d51d398383c99aa0e1c84e46aafa593006d5120d 11-Oct-2017 Jean-Michel Trivi <jmtrivi@google.com> Fix alarm preview volume

SeekBarVolumizer: do not use FLAG_BYPASS_INTERRUPTION_POLICY as
there is no need to bypass DnD modes in seek bar for volume
since they are disabled according to the DnD mode.
AudioService (PlaybackActivityMonitor): check both
AudioAttributes flags BYPASS_INTERRUPTION_POLICY and
BYPASS_MUTE for forced alarm playback (see b/63617557).

Test: see bug
Bug: 67578783
Change-Id: Iaf43f16d96d1ad8a1eacc73a050db767004ba96b
eekBarVolumizer.java
846234f399777a50e7d02260f742ad88cf5e9d52 23-Jun-2017 Doris Ling <dling@google.com> Fix issue for Preference.setSingleLineTitle() has no effect.

The flag to check whether the single line title attribute is initialized
only when we processed the layout attributes. When the attribute is not
set in the layout, but set through the setter method, the flag is not
being updated properly, and hence the title view is not set correctly.
Need to update the flag as well when the setter method is called.

Bug: 62947301
Test: manual
Change-Id: If843663165a0f3348048aaf1d920f3b740af5bc3
reference.java
c1caca14588cca09a5e5134cfc26a22d924ccec4 24-Apr-2017 Fan Zhang <zhfan@google.com> Set icon frame to invisible when iconSpaceReserved is set.

Bug: 37572025
Test: manual
Change-Id: I843bbf329a04964ddeccd17ed71e02f2264a5068
reference.java
ce58046673bfd18656fd94a6612a250f31036dce 14-Apr-2017 Doris Ling <dling@google.com> Check if singleLineTitle attribute is set for the preference.

Only call setSingleLine() on the preference title if the attribute is
set.

Bug: 37328004
Test: manual
Change-Id: Ia95230cd08feaf8213cb5917c105d070eb30c11c
reference.java
9ed53e35edd819babab7a59ef9957b9ec96d18f2 27-Mar-2017 Doris Ling <dling@google.com> Reserve space for preference icon.

Add an attribute to Preference to specify whether the space of the icon
view should be reserved when no preference icon is provided.

Bug: 36448695
Test: manual
Change-Id: I03b49fe93d54bb9106cf167a677a9ea544a3e3a1
reference.java
2cb4bab1a886dcab1cbca1b84382e65f16a8f177 20-Mar-2017 Doris Ling <dling@google.com> Allow multi line preference title.

Add an attribute to Preference to specify whether single line is to
be used for the preference

Change-Id: I578b496cdc4c5b0e3b3146183c6c30c4dee02eab
Fix: 36389770
Test: manual
reference.java
3ee60614af5b4ebec0c4a56e0b3550c3595a32be 14-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Small cleanup or DataStore API javadoc."
ee3bc34c3aba340399b3b5aaa7688d92e476ec32 13-Mar-2017 Filip Pavlis <pavlis@google.com> Small cleanup or DataStore API javadoc.

There is also change in PreferenceManager.getSharedPreferences. The
original was not always returning null in case mPreferenceDataStore is
not null. That was contradictory with the java doc and conufing during
the runtime. Added tests for it.

Test: Separate CTS (2) being submitted along this one, see the topic.
Bug: b/34322039
Change-Id: I78a6758a674c3c8139bbe66ec17f2e29ca847828
reference.java
referenceManager.java
4186b344d829e155feebf6797bd41576fccb5f16 07-Mar-2017 Filip Pavlis <pavlis@google.com> Enable recycling of third party preference widgets

Until now we have been recycling only framework preference widgets since
there were no guarantees for third party preferences to support recycling.
This let to broken animations for preference widgets that are outside of
the framework.

This change makes recycling to be used always and in case the developers
need to turn it off they can explicitely use a new attribute that is
being added to the Preference called "recycleEnabled" and set it to false.

Bug: b/34334451
Test: Test are part of the same topic.

Change-Id: I324087841e1edddbf0d3eaad00b5895a196acff6
reference.java
referenceGroupAdapter.java
e88fbbac1245f5d9c0082b689fc8ee95bc291a2c 07-Mar-2017 Filip Pavlis <pavlis@google.com> Merge "Fix home/back buttons flow in PreferenceActivity."
6af15ebcfec64d0cc6879a0af9cfffd3e084ee73 01-Mar-2017 Filip Pavlis <pavlis@google.com> Fix home/back buttons flow in PreferenceActivity.

Bug: b/35977048
Test: Done manually. Automated test will be added later.

After recent changes in PreferenceActivity finishing the activity on
pressing back is not correct anymore. Instead onBackButton method should
be called to deal with it (we have fragments transactions for instance).

There can be multiple buttons:
1. The native default one - calls onBackPressed by default so no extra work
needed.
2. PreferenceActivity has buttons that can de displayed when settting
EXTRA_PREFS_SHOW_BUTTON_BAR to true. But it is a private API and I
didn't find any usage of it, so there is no need to change that. Also
it looks like something very specific used in WiFi wizards.
3. Apps often use a toolbar that has a home button which essentialy
emulates back button. The issue is that this Activity never had support
for this. So apps had to override onOptionsItemSelected and some of
those are unfortunately calling finish() which worked previously when
PreferenceActivity wasn't using fragments in single pane. This CL adds
support so app will no longer need to override that method and some
apps need to be instructed to use that override in O.

Change-Id: I94f557edb2e03f89fbf02e800beb390b2ad0544f
referenceActivity.java
0955793a45ca2c96726b698898514942bcedd6ef 03-Mar-2017 Filip Pavlis <pavlis@google.com> Improve preferences for PreferenceDataStore.

I have done some important cleanup of java docs where it wasn't clear
enough that there is a PreferenceDataStore option.

I have fixed incorrect behavior when setting default value while data
store is assigned. Previsouly we looked into SharedPreferences which is
incorrect.

I have also changed behavior of methods getSharedPreferences and
getEditor. These methods now return null when custom data store is
assigned. The reason is that we definetly don't want to use
SharedPreferences if data store is assigned. So the original behavior
was a bit ambiguous. Also if we didn't enforce it, we would have
troubles to change that in the future.

Test: Tests are under the same topic.
Change-Id: Ib7303bae13648767c519edba74ef9a7143e703df
reference.java
referenceManager.java
d1c7bb771c76bbd24d070821b0734be9a68c3daa 02-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "JavaDoc improvements as suggested by API council."
fd59645ba7d4445b3308489ef07c700aaed85c6f 01-Mar-2017 Filip Pavlis <pavlis@google.com> JavaDoc improvements as suggested by API council.

Bug: b/35813554
Test: Not needed.
Change-Id: I009497bab66c9cc624f434f6d2dde0d80381d961
reference.java
referenceDataStore.java
referenceManager.java
dd9bda81f698043a0110d4e2178d20cb160ba829 24-Feb-2017 Jeff Sharkey <jsharkey@android.com> Delete @removed APIs that never shipped.

These were never part of any public API level, so apps should never
have been using them.

Test: builds, boots
Bug: 31241513
Change-Id: I4fc8f5c325da56694a5db98acc995a22d4947805
referenceManager.java
27f8d6d977a93b9b0dfe5d29f18358fe9e2b8459 20-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix incorrect title in PreferenceActivity."
b07c6f621aacc0141da0c4d24709f41197950d3b 17-Feb-2017 Filip Pavlis <pavlis@google.com> Fix incorrect title in PreferenceActivity.

When navigating from a preference panel back to the headers in single pane,
the title was not restored and the original one (of the previous
preference panel) was kept instead.

Bug: b/35468759
Test: Is covered in ag/1761868
Change-Id: I30cc4c1d2a53d05411cc849ce8423b694c76976a
referenceActivity.java
df47bee061f72f0c75bd73025066bd24807814e3 16-Feb-2017 Shigeki Yokomichi <shigeki.x.yokomichi@sonymobile.com> Merge "Fix the "Alarm volume" icon is displayed incorrectly" am: e0ba81110a am: 657abc315d am: 4b06345751
am: bce364b776

Change-Id: Ia47be383cbc07818a7a51f85bfba4a30aedd3a5a
e0ba81110a7070b3a7a80c14014a1fc0a4b9b982 16-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Fix the "Alarm volume" icon is displayed incorrectly"
eadd5a90843c5fda9b1f973b6f133a9d2e9d984b 10-Feb-2017 Filip Pavlis <pavlis@google.com> Fix incorrect header highlight when in single-pane.

Bug: 35216626
Test: Case will be covered in ag/1761868

Change-Id: I877823762a44d6545c80f4f59b29f190c389ba09
referenceActivity.java
8874d6efdac61fcebcc20d27a3a1fecb3771c886 07-Feb-2017 Filip Pavlis <pavlis@google.com> Merge "Fix transitions between single and multi-pane."
61fc0d47ff2f78acb8914398d1d7a570bb9a0b11 06-Jan-2017 Filip Pavlis <pavlis@google.com> Fix transitions between single and multi-pane.

Transitions in and out of multi-window were causing navigation history
losses + incorrect views to be displayed. The history loss was caused by
the fact that single-pane mode was using Activities but multi-pane mode
was using Fragments. Translating history between those two would be
challenging. Because of that Fragment approach was also applied to
single-pane mode. That required some changes in back press handling and
initial logic when creating the PreferenceActivity.

Test: Separate CTS CL being submitted along this one, see the topic.
Bug: 32201932
Change-Id: I5e6a6a21c34e813d1c3522ae7f5e33f43887c602
referenceActivity.java
cba645896f53ca7b5508d6ebcc60d93a640cd19d 10-Jan-2017 Filip Pavlis <pavlis@google.com> Add getParent() on Preference.

Preference class now keeps track of its PreferenceGroup parent which
makes it easier to remove it from the preference hierarchy.

This required a new API method.

Test: Separate CTS CL being submitted along this one, see the topic.
BUG: 30599046
Change-Id: Ia9f274ef0315cb09a8c558e781b10f57efd28406
reference.java
referenceGroup.java
0b0c6cbdaf982642a62595e466f0f66447d053e5 16-Nov-2016 Filip Pavlis <pavlis@google.com> Adds data store to provide data abstracion layer for Preferences.

Developers will be able to use PreferenceDataStore to replace default
SharedPreferences to store / retrieve the data.

Test: Separate CTS CL being submitted along this one, see the topic.

Change-Id: Ie46a876dcb14b46b8b2584735c106c25655ec6cf
reference.java
referenceDataStore.java
referenceManager.java
18b7652db75d7cf1b710e85856e09241ebbe49c8 19-Sep-2016 Tony Mantler <nicoya@google.com> Merge "Allow styled text in pref titles and summaries"
88dabdeeb288d01bb33217850be76eae84281b30 09-Aug-2016 Julia Reynolds <juliacr@google.com> Animate volume slider changes.

Change-Id: I03f83d25eeb2ef30346c377d6b4fcb8688faaffc
Fixes: 30670594
eekBarVolumizer.java
9a6b11b69264ee3ec0cd99d6c22c7cdb6bc63b88 14-Sep-2016 Tony Mantler <nicoya@google.com> Allow styled text in pref titles and summaries

Also tidy whitespace

b/31372605

Change-Id: I4640c370bc7eb2c33deb2e76b152784505007216
reference.java
09ba4a4b78d3c08595124dbbdf778ccd4ade0bc5 08-Sep-2016 Michael Kwan <mkwan@google.com> Ensure preference icon is returned when inflated from XML even if it has not been displayed yet.
am: f049e24c64

Change-Id: Iab0a315f916fe7da2b2a523f364be5a6842aadbd
f049e24c644912a308ca283ba1c75d678a09f4a8 07-Sep-2016 Michael Kwan <mkwan@google.com> Ensure preference icon is returned when inflated from XML even if it has not been displayed yet.

Bug: 31343032
Change-Id: Ifa2c84b3091c2cfc5b98da6f30bb1ba060cd26e7
reference.java
f704097df498ab5883eafd1cdd7dfaf0902b7db9 26-Jul-2016 Michael Kwan <mkwan@google.com> Add titles to PreferenceFragments and PreferenceScreens for watches.
am: 744be16ffa

Change-Id: I54847a5ef3ddb4e09cc835433d80e121cf32b725
744be16ffa030cb62de13f633c124fc0e72d0181 23-Jul-2016 Michael Kwan <mkwan@google.com> Add titles to PreferenceFragments and PreferenceScreens for watches.

Preferences lack a title on watch type devices due to lack of ActionBar
support. A custom ListView was added to use a custom wrapper adapter to
add a persistent header view at the top of the ListView that developers
would not be able to remove via the ListView API.

Bug: 27962897
Change-Id: I6bccecf85592d9507e0c7a04c9a035617001e9ef
referenceFragment.java
referenceScreen.java
8eb355dff90c8d7ef392e7bf3f139b2b78116873 25-Feb-2016 Shigeki Yokomichi <shigeki.x.yokomichi@sonymobile.com> Fix the "Alarm volume" icon is displayed incorrectly

Symptom:
1. Set Alarm volume to 0 on Sound & notification screen, then tap
Back key and reopen the screen.
2. Set Alarm volume up to 1 or larger, then alarm icon changes to
unmute.
3. Set Alarm volume down to 0, then the icon doesn't change to
mute. There expected the icon should change to mute one.

Detail and sample:
SeekBarVolumizer manages a variable mLastAudibleStreamVolume.
This variable decides whether it executes mute procedure or not.
When this variable is 0, it will not execute mute procedure.
Because the condition to execute mute proceduce is below.
- lastAudibleVolume * (mute ? -1 : 1) < 0
What original code will not update this variable from constructor
is one of problems. So once the icon changes to unmute one,
the icon will never change to mute one.

Solution:
Changed the condition as it doesn't depend on value of
lastAudibleVolume.

Bug: 30265487

Change-Id: I42165f39d1f344169674c09a045b6fb2bb25db4d
eekBarVolumizer.java
0353f42f06eb8f24fc055dd22b659dadc9284da5 07-Jul-2016 Michael Kwan <mkwan@google.com> Merge \"Allow preference theming to remove divider.\" into nyc-mr1-dev
am: 929c8f4a75

Change-Id: If6e8a902ef01378213990a171053788dcae568cc
908523014e8cdc04c65c85a95be0c8ca98113c06 03-Jul-2016 Michael Kwan <mkwan@google.com> Allow preference theming to remove divider.

Bug: 27962897
Change-Id: I6632f2a3c3d1290c472594f127ad33c9b85023f1
referenceFragment.java
d2ebee5e73b2861106ca1326659c8576acc983bb 05-Apr-2016 Jason Monk <jmonk@google.com> Revert "Add Preference#onDetachedFromActivity"
am: b65b710

* commit 'b65b7105cd5d20bf8a9f9c1b10afd6df968bc442':
Revert "Add Preference#onDetachedFromActivity"

Change-Id: I78a6d99746507b6cde29f25bf161693c5ced4128
b65b7105cd5d20bf8a9f9c1b10afd6df968bc442 04-Apr-2016 Jason Monk <jmonk@google.com> Revert "Add Preference#onDetachedFromActivity"

This reverts commit e18dc50c63110a57cfc29ec9bd21bf3f59abb6b4.
Fixes: 27807793

Change-Id: Ib0384e3deb8d6376265e8e60f14490de128c9b68
(cherry picked from commit eff3ca5480789c51768a3a1697503fbbdadc1bd6)
reference.java
referenceGroup.java
referenceManager.java
cd3af14d2eea6d54c3227fa92fa17e57a6ed4e0b 27-Mar-2016 Jeff Sharkey <jsharkey@android.com> Add methods to probe current storage state.
am: c9a40cd

* commit 'c9a40cd8448410316716e45ce051c9f1a3fc7054':
Add methods to probe current storage state.
c9a40cd8448410316716e45ce051c9f1a3fc7054 27-Mar-2016 Jeff Sharkey <jsharkey@android.com> Add methods to probe current storage state.

Bug: 27811575
Change-Id: I2586fe3ec4d5c98c5b956f4b4a4cec425c81b0b1
referenceManager.java
a903fd76262f61fa09bb5a09ad130ce8ca01ff40 18-Mar-2016 Jeff Sharkey <jsharkey@android.com> Merge "Update direct boot related documentation." into nyc-dev
am: 2a4e495

* commit '2a4e495448a048bef9d3b2a756816a622abd57b0':
Update direct boot related documentation.
cf3f0a11a83e7a798e0586a78efdafc82a7f3d08 18-Mar-2016 Jeff Sharkey <jsharkey@android.com> Update direct boot related documentation.

Also hide a few APIs as requested by council. Add a method to
easily determine if a given File would already be encrypted at rest
by the OS.

Bug: 27531029
Change-Id: Icad5f1cd56411ad3ac707db85fd7449acdcc4b94
referenceManager.java
5a128c4f33aa38d3a35b5884519f6bd3a355512d 17-Mar-2016 Jeff Sharkey <jsharkey@android.com> Merge "Refactoring FBE APIs based on council feedback." into nyc-dev
am: a0a58a2

* commit 'a0a58a2fd5cbc1bb8056227bb04f276b364c6e96':
Refactoring FBE APIs based on council feedback.
a0a58a2fd5cbc1bb8056227bb04f276b364c6e96 17-Mar-2016 Jeff Sharkey <jsharkey@google.com> Merge "Refactoring FBE APIs based on council feedback." into nyc-dev
8a372a0a280127743ce9a7ce4b6198c7a02d2a4f 16-Mar-2016 Jeff Sharkey <jsharkey@android.com> Refactoring FBE APIs based on council feedback.

Mostly consists of removing the word "encryption" from most APIs,
since we can't actually make promises about the data being encrypted.

Bug: 27531029
Change-Id: Iace9d7c4e64716abf86ed11847c40f3947e1d625
referenceManager.java
422edce4ca8908c9f1afff51fbfb76fdb20a7473 17-Mar-2016 Sudheer Shanka <sudheersai@google.com> Merge "Fix a race condition in SeekBarVolumizer." into nyc-dev
am: 54f4a63

* commit '54f4a630dcb66f0b6d5ae5b1028dc88d7971c99e':
Fix a race condition in SeekBarVolumizer.
33194351fee6c3b670e045139e4bf47617e8047f 16-Mar-2016 Sudheer Shanka <sudheersai@google.com> Fix a race condition in SeekBarVolumizer.

Bug: 27355876
Bug: 27355810
Bug: 27355145
Change-Id: Ie33bf6aa92834076e3b8cf394c4d86400fb67592
eekBarVolumizer.java
b562aaaa4c484682d5ae46ebfed04062fa7e13c2 10-Mar-2016 Daniel Micay <danielmicay@gmail.com> Merge "fix SeekBarPreference support for summaries"
am: 06ce16a54c

* commit '06ce16a54c971e922d9e34cc5a57f012614db20f':
fix SeekBarPreference support for summaries
084ee67b353b259d544cee662bb46bb16dee9a95 10-Mar-2016 Daniel Micay <danielmicay@gmail.com> fix SeekBarPreference support for summaries

Overriding getSummary breaks support for summaries even though it's
supported in the layout for SeekBarPreference. If there's no summary the
return value is already null in the inherited implementation.

Change-Id: I2e72ea3c4a624acbf200e9617173eb072572fa57
eekBarPreference.java
3dc88c8f1434cfacc8103e2ee7e1b54573bc27b9 08-Mar-2016 mariagpuyol <mariagpuyol@google.com> Fix bug in setText

Bug:27547655
Change-Id: Ia15facda59fab9a8fe9b30f74ddd085bc26871af
ditTextPreference.java
5c2f839971aaac2bc7cfd98a61e0eb0e04340a9e 24-Feb-2016 Adam Powell <adamp@google.com> Un-hide string set persistence methods in Preference

6 years is enough time for API approval.

Bug 27324328

Change-Id: I5d5af0fc291250cd9ea5b50cd5031378475eacec
reference.java
fd37abe9d5469f2b0d640c625f14b75cfe609711 28-Jan-2016 Jeff Sharkey <jsharkey@android.com> Make PreferenceActivity/Fragment encryption ready.

Developers using these classes can getPreferenceManager() and
explicitly set the storage location for any SharedPreferences values
persisted through it.

Bug: 26747519
Change-Id: I133045df6a69aa99f33b6b6c447f52605468b927
referenceManager.java
6a6cdafaec56fcd793214678c7fcc52f0b860cfc 08-Dec-2015 Jeff Sharkey <jsharkey@android.com> APIs to obtain SharedPreferences paths.

Needed for apps that want to migrate SharedPreferences from CE to DE
storage. Note that a device will only ever enter a CE mode with a
factory reset, so apps should only be using these APIs when they
want to migrate files to a consistent location on non-FBE devices
for simplicity.

Bug: 25503089
Change-Id: Ic846215da1617d116a048e036415ac7ad523b770
referenceManager.java
7fc97c913487c4df97b8af111390942d61c1d331 28-Oct-2015 Jason Monk <jmonk@google.com> Let support preferences use DeviceDefault themes

Change-Id: I5a0f074dfd1b948b1ced9195ae937e2ad80a5f28
referenceFragment.java
witchPreference.java
bd18c9fd0a913e09a027224ec18636a3e0329e8c 15-Oct-2015 Julia Reynolds <juliacr@google.com> am 3afdd417: am cad75a26: am 627bc805: am ae5a53d7: Merge "Update volume slider on device changed." into mnc-dr-dev

* commit '3afdd4177244423037a6c54650dd34ed2721aad8':
Update volume slider on device changed.
3afdd4177244423037a6c54650dd34ed2721aad8 15-Oct-2015 Julia Reynolds <juliacr@google.com> am cad75a26: am 627bc805: am ae5a53d7: Merge "Update volume slider on device changed." into mnc-dr-dev

* commit 'cad75a2636ea53017686d6d565c60e92cdfac161':
Update volume slider on device changed.
3a10b10ee599887271859c3f68e4b098b06f0852 14-Oct-2015 Julia Reynolds <juliacr@google.com> Update volume slider on device changed.

Bug: 24501085
Change-Id: I5bd0ac014eb291cafcf918e8a73a30e95245d533
eekBarVolumizer.java
fde4b0028f4023551ee7be1d8e307cfb113ce180 07-Oct-2015 Alan Viverette <alanv@google.com> am b46886f4: am f518ad0a: Merge "IndexOutOfBoundsException on addPreference in PreferenceGroup"

* commit 'b46886f41d142cc63e054814caf76d15bf2f8cb6':
IndexOutOfBoundsException on addPreference in PreferenceGroup
8c190029dba65c8898b8cafc7235481391f4b446 07-Oct-2015 Alan Viverette <alanv@google.com> am 2235ecd5: am f8ac5c34: Merge "Reset the setOnKeyListener callback when view is destroyed"

* commit '2235ecd5ec06e48bbcecb6f22a653e470d94dfef':
Reset the setOnKeyListener callback when view is destroyed
f518ad0a4941236b72b5d090320d4ab70ebbf26b 07-Oct-2015 Alan Viverette <alanv@google.com> Merge "IndexOutOfBoundsException on addPreference in PreferenceGroup"
f8ac5c3469e53a7934731cfb854efb2975251ab4 07-Oct-2015 Alan Viverette <alanv@google.com> Merge "Reset the setOnKeyListener callback when view is destroyed"
e9889bf372ec4321ca8802b4aca54a99fdfedfd2 29-Sep-2015 Toni Barzic <tbarzic@google.com> Forward SeekBarPreference key events to seekBar view

This is to ensure that seek bar progress gets properly updated,
and that progress changes reported by the seek bar are marked as
coming from user.

BUG=24416333
BUG=20049245

Change-Id: I0a48c8eae1528937024ca54720cac91c7d21b0b9
eekBarPreference.java
e18dc50c63110a57cfc29ec9bd21bf3f59abb6b4 11-Aug-2015 Jason Monk <jmonk@google.com> Add Preference#onDetachedFromActivity

Change-Id: I7c78f96d41b33b902e54fe1c0b7246d555aab0ed
reference.java
referenceGroup.java
referenceManager.java
5e18c40d28cba98607d34f50e972c4d977c3dd6c 09-Feb-2015 Mykola Kondratenko <mykola.kondratenko@sonymobile.com> Reset the setOnKeyListener callback when view is destroyed

NPE happened in mListOnKeyListener.onKey().

It looks like onKey in some cases is sent to a view while beeing
destroyed. When callback is received mList is referenced causing
the NPE.

Remove OnKeyListener first when destroying view so we can not get
any unwanted key callbacks.

Bug: 22333421

Change-Id: I94b198e31a2f9fbdd7fbadf4971be7720dcfad8d
referenceFragment.java
96d4a9ec394975818b073b537ccb6220ef0949ba 10-Jun-2015 John Spurlock <jspurlock@google.com> Volume: Disable seekbar prefs when zen muted.

- And display the last audible value.

Bug: 21267436
Change-Id: I667d0680811b48a51eab22c837933e493f1d5c44
eekBarVolumizer.java
olumePreference.java
5c3188e75e33c8edaf18af71fa681cd7759aee87 09-Jun-2015 Alan Viverette <alanv@google.com> Update seek bar dialog preference for Material

Bug: 21620889
Change-Id: Ie8e6f570a3be32722f4e49ccf81da263fda736fe
eekBarDialogPreference.java
olumePreference.java
02fc19ecfc3d53bd0ac811e0113534e0e2818e91 21-May-2015 Jean-Michel Trivi <jmtrivi@google.com> Ringtone picker is not affected by current sonification policy

Add the FLAG_BYPASS_INTERRUPTION_POLICY AudioAttributes flag when
launching the ringtone picker so it is not affected by the
current sonification policy, in order to ensure the audibility
of the phone ringtone or default notification being previewed
by the user.

Bug 19407114

Change-Id: Ibd24e3f14e56e67f9e37576a84c97a73f5494074
ingtonePreference.java
904de2ec9360de2ee54b91aaf9e141d9d8ab1de1 04-May-2015 Alan Viverette <alanv@google.com> Always force constructors accessible during inflation

We now correctly throw an IllegalAccessException for non-public accesses,
but we were relying on the old incorrect behavior during inflation. This
CL forces constructors to be accessible so that we emulate the old
behavior and don't crash.

Where we were already doing this, the CL moves the setAccessible() call
immediately after the getConstructor() call, since there's no point in
calling it multiple times.

Bug: 20810495
Change-Id: I63dfcb857e445f688080eea05e86ef22760ed49f
enericInflater.java
721d457685cc83785d0d0aad259e3218af899fc9 16-Apr-2015 John Spurlock <jspurlock@google.com> Volume: Automute in seek bar volumizer.

Never disable the slider, allow mutebusting and syncing mute to 0
value.

Also add new framework icon for media.

Bug: 20096341
Change-Id: I9db1671c3442365866a49c9d6f7becf0b2e05435
eekBarVolumizer.java
822b403b687065e74efe2c5316638d4e2eda1863 28-Mar-2015 Andreas Gampe <agampe@google.com> am 3fa46a0f: am d7fb6d26: am a01250c7: Merge "Frameworks/base: Change String == to equals in Preference"

* commit '3fa46a0f79f35ca32ce102d4bbb1138c517ee754':
Frameworks/base: Change String == to equals in Preference
3695b8a1488a6cc331feba1c2ab359888656bf7c 25-Mar-2015 Svet Ganov <svetoslavganov@google.com> First implementation of the grant/revoke UI

Change-Id: Icdb7c822881552b30850697dba709671bf27baa5
reference.java
c3e1c2148209658829e66e6f3f109d8b9227c597 18-Mar-2015 Andreas Gampe <agampe@google.com> Frameworks/base: Change String == to equals in Preference

Bug: 19797138
Change-Id: I496b12c425da45ee098db12e72ad843c22444ba3
reference.java
417ee5ba89f7e0fe5efd34fce74bf1ee5923d976 11-Mar-2015 Tor Norbye <tnorbye@google.com> Add resource type annotations to some APIs

Change-Id: I37c8afdaea455aa92bc8270bb2dfd60616c5f9bc
referenceFragment.java
c615c6fc9caca76cd96998f86e1f1e6393aeadbb 02-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate methods to be called from overrides with @CallSuper

Change-Id: Ibc587c2aaee9f3e7f448079f72a75459fe4e15e7
ialogPreference.java
reference.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
enericInflater.java
referenceGroup.java
3c32b620448673dd47f869e2029e12b72ee21ed1 23-Feb-2015 Scott Kennedy <skennedy@google.com> Add some more @Nullable annotations

Change-Id: I586d542e087eafa8355f0eaa606d66876c0f5a56
referenceActivity.java
referenceFragment.java
0a7269bbafb91e86f57963a30edcc4c8aa49af44 19-Feb-2015 John Spurlock <jspurlock@google.com> Merge "AudioAttributes: introduce new flags to bypass audio restrictions."
bbfd31a5d4f126167e20fa8bd256c810cf8c2c85 18-Feb-2015 John Spurlock <jspurlock@google.com> AudioAttributes: introduce new flags to bypass audio restrictions.

- New @hidden @SystemApi FLAG_BYPASS_INTERRUPTION_POLICY, request
to ignore any current audio restrictions, such as zen mode
content-based notification filtering.
- Wire up FLAG_BYPASS_INTERRUPTION_POLICY to the existing
audio restriction checks in the framework.

- New @hidden @SystemApi FLAG_BYPASS_MUTE, request to play
audibly, even if the underlying stream is muted.
- Wiring up to audio framework TBD.

- Use both of these new flags on the inline volume slider
controls used in Settings, ensuring playback is heard
regardless of the current device filter state.

Bug: 19407114
Change-Id: I3d44394931592ccbc1b61ddd9a4d1cc984da17cc
eekBarVolumizer.java
7b9c912f536925ac6ec43935d6e97506851b33d6 31-May-2013 Tor Norbye <tnorbye@google.com> Add @ResourceInt annotations on APIs

Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08
ialogPreference.java
enericInflater.java
istPreference.java
ultiCheckPreference.java
ultiSelectListPreference.java
reference.java
referenceActivity.java
referenceManager.java
witchPreference.java
woStatePreference.java
2bd01ebfa99815d4fb6b4e77754146a22cf66d03 06-Jan-2015 Deepanshu Gupta <deepanshu@google.com> am 7ed14549: am 7081a114: Merge "Add preferences rendering." into lmp-dev

* commit '7ed145493d3f5bea32c567980f77cc42f613197e':
Add preferences rendering.
10bb1371dca38b5b59f083ee963f7987da6511f2 05-Oct-2014 Deepanshu Gupta <deepanshu@google.com> Add preferences rendering.

NO_SQ: Depends on updating layoutlib-api-prebuilt.jar
Change-Id: Iae93ab74c478e6f2158e1528467bec9ee2d7ee9b
reference.java
referenceManager.java
6689c901cb70da01beded7c108dadfcaca34caf4 04-Feb-2014 Daniel 2 Olofsson <daniel2.olofsson@sonymobile.com> IndexOutOfBoundsException on addPreference in PreferenceGroup

IndexOutOfBoundsException thrown when attempting to add preference
to PreferenceGroup and at same time removing all preferences in list.
Issue is caused by a race condition in addPreference that retrieves
index of where to add Preference from binary search of mPreferenceList
outside of synchronized lock. If list is cleared after this point but
prior to adding preference on index returned from binarySearch
exception is thrown.

Solved by moving binarySearch to inside synchronized block. This will
allow thread safety while not impacting behavior as result from search
is only ever used from within synchronized block.

Change-Id: Ic1e7954cf977b1ddd6ddba98d4cf771f21fb4d57
referenceGroup.java
bcc1087af40a0e1bb35dbe8a39c830ecdea8280b 28-Nov-2014 John Spurlock <jspurlock@google.com> Volume: Improve inline volume controls used in settings.

- Make the system internal ringer mode change signal available to
other system components via a standard intent, instead of a
volume-controller-only binder call.
- Update sysui to use new intent for icon policy.
- Add proper muting state to the volumizer, to look more like
the associated volume panel slider.
- Add basic ringer mode state tracking for the notification-ring
slider setting.

Bug: 17899613
Change-Id: Ie2df52edb070055ef59c74039162a0e785d2fdbb
eekBarVolumizer.java
olumePreference.java
13e13ddd4e3d1e7c10b55b6e3fe47d6bfd317ed3 22-Oct-2014 Alan Viverette <alanv@google.com> Format ListPreference summary with empty string if entry is null

Adding serif-monospace and sans-serif-monospace font families bumped
out the previous monospace, which left the summary as %s. Returning
an unformatted summary is never correct, and we should simply return
a summary populated with an empty string.

BUG: 17666124
Change-Id: Ic22dc5dc87d9ba3ad6f6b92ee059f5c98cbf103a
istPreference.java
735f9ebc188e1cb225533e1f5f9ef925d1f0b20e 21-Oct-2014 John Spurlock <jspurlock@google.com> Settings: Make SeekBarVolumizer more null-resilient.

Now that the instances are reusable, ensure all "post" methods
do a handler check, and ensure they are all internal.

Bug: 18063070
Change-Id: Idc478c636686f666f5656f3d07bf2738ba3e9a5a
eekBarVolumizer.java
olumePreference.java
0e588ea8e1746f3335b2b5c8a51fdd9a96167b59 08-Oct-2014 John Spurlock <jspurlock@google.com> Make SeekBarVolumizer restartable.

Decouple start from constructor, making it possible to restart
once stopped.

Bug:17898190
Change-Id: I2f860864161f818d5a62a28331ef1c47051fb39f
eekBarVolumizer.java
olumePreference.java
b22be6fcf2689a7de3795f406678caf73180a990 25-Sep-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #17521147 Settings activity looks terrible on Volantis

- update layouts for PreferenceActivity and its headers
in two panes mode (per UX request)
- add theming where it was missing

Change-Id: I0c478c1a66b6de7e122b7ee73da24f3dd5a7bc28
referenceActivity.java
996a63859fd6e1e77f88ae465afa2c71e4dd3245 03-Sep-2014 Alan Viverette <alanv@google.com> Fix accessibility events emitted from TwoStatePreference

Removes redundant and conflicting events emitted from check and switch
preferences. Sends VIEW_CLICKED accessibility events from AdapterView
rows after calling their on click listeners, which ensures data is
consistent.

BUG: 16961152
Change-Id: I4b57bceec6830d775c2da57226b8ee482242caf7
heckBoxPreference.java
witchPreference.java
woStatePreference.java
b1a50f2dff3d2d24c3567e2be67e7a4bc87a9b31 13-Aug-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #16957601 Stability: ISE in Settings: Observer com.android.settings.
SettingsPreferenceFragment$1@273c8fdb was not registered

- add onUnbindPreferences() call to match onBindPreferences()
- this new method is @hide so it does not impact the APIs

Change-Id: Iee0ab8a4ecc2046f89fb96cc52af150e835f658c
referenceFragment.java
351346092acdfbfcc1d9ebf98d539d2a1196c5e8 25-Jul-2014 John Spurlock <jspurlock@google.com> Volume: Show safe media warning in settings.

If the safe media warning is enabled, make sure
we display it from the new inline slider preference in
Settings (without showing the volume dialog itself).

Also:
- Update the warning dialog to the new sysui theme.
- Separate the warning sentences with an additional line.
- Fix the auto-dismiss timeout.
- Add a system property to additionally enable the safe
media warning for testing
- Add more information to audio service dumpsys.

Bug:15434662
Change-Id: I95fec12c9049bbfdb7ebdf246160e4b12c0c5be3
eekBarVolumizer.java
4d065a04ce42c07569cf20651c949c4da97aa4a9 12-Jul-2014 Alan Viverette <alanv@google.com> Remove old listener when rebinding SwitchPreference

Also fixes switch animation during scrolling, unnecessary call to
requestLayout() on drawable invalidate, and potential NPE.

BUG: 16225972
BUG: 4312303
Change-Id: I015d1f03206dd2c812592b0abfa4214a3de73d3f
witchPreference.java
f9499b36e689dee5cec2cb7bb0b7d21f7c302d84 03-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Add PreferenceFragment styling

- add the capability to specify a specific layout for PreferenceFragment

Change-Id: I2fa36b8fa8110e6cbc8006e1d000dc90ae6a5f0b
referenceFragment.java
5f9f6c3936a8a266bb5dcd31e94d403917f1bbe8 19-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix PreferenceGroupAdapter highlight code path

- do not change the Preference View background. Instead wrap
the Preference View into a FrameLayout with the highlighting
Drawable as the background
- test the View type to force the Preference View creation and
not rely on the convert View when highlighting
- define a new View type for the highlighting
- increment getViewTypeCount() returned value (for the new type)

Change-Id: Ie5f19311e11545aba848fd637ec61e43071d8dcf
referenceGroupAdapter.java
02bc31e7b351281e7ca905dbf7ad72ec4119e2e0 17-Jun-2014 Brian Attwell <brianattwell@google.com> setSelectedHeader() when switching to fragment

Without this change, passing a EXTRA_SHOW_FRAGMENT value
for a two panel preferences activity will cause the correct
fragment to be shown. However, it will not cause the
correct header to be highlighted.

Bug: 15675746
Bug: 5045558
Change-Id: I18d8e15dd104e8f39ae1ccbb11ab17fd1bf7462e
referenceActivity.java
19ae4ca5a7d84a8a79feba560b024120b56b55b8 13-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix SeekBarPreference Theming

- make the layout a Theme attribute and use it
- make a specific Material version of the layout for matching
what we have in the Settings App

See bug: #15414236 Define a framework theme for system settings

and #15384992 Setting Dashboard - padding updates

Change-Id: I69c90523fab112fecf26d89de8fc35dd62430c06
eekBarPreference.java
0dbf1a6be21bb8947aa716fc40c6e288178b1803 01-Jun-2014 John Spurlock <jspurlock@google.com> Settings: Keep SeekBarVolumizer in sync with audio stream.

Use AudioManager.VOLUME_CHANGED_ACTION instead of relying
on obsolete settings.

Bug:15343543
Change-Id: Ia95237bb455268314ec985affe92b0cec6b52e29
eekBarVolumizer.java
95caba127051845ff1e26d7e64909db89408e8e7 27-May-2014 John Spurlock <jspurlock@google.com> frameworks/base: Performance tweaks for SeekBarVolumizer.

Move ringtone init to the worker thread. Allow the volumizer
instance to be reused by making the seekbar settable.

Bug:15091992
Change-Id: Ib616ae0fbb9a45c63391f8335e48ec2754dbdcd5
eekBarVolumizer.java
olumePreference.java
74a2e06d831432f27ebd17cf6f1d0086356e7ee0 17-May-2014 John Spurlock <jspurlock@google.com> VolumeZen: frameworks changes to support Settings.

- Pull SeekBarVolumizer out into a separately reusable class.
- Make register/unregisterOnActivityStopListener avail to system code.
- Add new setting for displaying suppressed notifications in zen mode.

Change-Id: Ic30aa575ae07650cee62c8c1d83b6bc69395cf0d
referenceManager.java
eekBarVolumizer.java
olumePreference.java
fcb48b3ab94ab6f87b5e29f8d56a3939d4938129 16-May-2014 Alan Viverette <alanv@google.com> Ensure volume preference has correct defStyleAttr

BUG: 14635756
Change-Id: Id78da5df3d355a4dda9bd1b80b14df54803d5d03
olumePreference.java
8a86d734e53dcbafd86c5cc28679323798ecd8a5 18-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Improve Preference highlighting

- add PreferenceFragment.onBindPreferences() so that we can know
when the binding as been done
- use the Preference's key as a tag for its View (so that we can
locate it latter in the View hierarchy)

Change-Id: Ifb3b30e576048b7464af63643834d278a46a8543
referenceFragment.java
referenceGroupAdapter.java
35d7b89b9f6151083001e3bae315a8e98882741f 16-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add Preference highlighting

- use a specific drawable for highlighting a Preference
at a given position
- also add PreferenceFragment.hasListView() as hidden API

Change-Id: If69854cf6c4852d0f45e2c3a9734b1f63b352f9d
referenceFragment.java
referenceGroupAdapter.java
55565ecd46ceef91abba8bda8eddb73e75300ca3 10-Apr-2014 Alan Viverette <alanv@google.com> Update list item text appearance

Adds a new attribute for secondary list item text and points
the Gingerbread and Holo themes to use TextAppearance.Small for
compatibility's sake.

Change-Id: I8e78a908b699baae6d1f5b3623fd7b5648b99b77
reference.java
53c2cf799fddfae7f6fc9ca1840ea345308b79ee 08-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add support for saving and using the Preference's key value

- make public and hide the PreferenceGroupAdapter class
- add setActivated(int position) to be able to set the activated item
- udpate getView(int position, View convertView, ViewGroup parent) to set/unset
the activated item

Change-Id: I8a653ad6541bb6b7a043ba7c3d95e5ecad924a0d
referenceGroupAdapter.java
8a985d24ce9a38f40ed88fecbdcd0e75e3a68f44 25-Feb-2014 John Spurlock <jspurlock@google.com> Tabs -> spaces in frameworks/base.

Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
enericInflater.java
8eea3ea5591e59f55cbb4f6b2b7e9363a285ced3 04-Feb-2014 Alan Viverette <alanv@google.com> Add APIs for obtaining themed Drawable from Theme, Context

BUG: 12611005
Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
ialogPreference.java
reference.java
ad2fcfe1b674fc468edf01f26b0a0bb4784b68ef 20-Jan-2014 Fabrice Di Meglio <fdimeglio@google.com> Make public but hide OnPreferenceTreeClickListener

- needed as the Settings app is no more a PreferenceActivity

Change-Id: I583493c4027b983efd059564a12eff0814c6bf02
referenceManager.java
5aaae37506236bf9d3c43535537bd84e54bd5df9 09-Jan-2014 Fabrice Di Meglio <fdimeglio@google.com> Code cleaning for PreferenceActivity

- remove non used argument

Change-Id: If57b8230aefffdd77fbba240042093ddb6975b9d
referenceActivity.java
f878c298e157ba81a378ba5ae3b4f23df8b1d85a 03-Dec-2013 Alan Viverette <alanv@google.com> Apply theme to PreferenceActivity headers

BUG: 11900302
Change-Id: Ibd1b08b412f6e64b44b2f3f07d297ede8fa01367
referenceActivity.java
f7d720e6b0ce95988b9596a5d1feee6a716fc933 21-Nov-2013 Svetoslav Ganov <svetoslavganov@google.com> am 4f23b610: am b95d6f54: am c6db9c3b: Merge "Revert "PreferenceFragment showing the breadcrumb when not needed."" into klp-dev

* commit '4f23b6104e11be81f3e2ca1a1031de6ca112f50a':
Revert "PreferenceFragment showing the breadcrumb when not needed."
45dbd75290236d26b003897c22b126d6196416ce 21-Nov-2013 Svetoslav Ganov <svetoslavganov@google.com> am dbab7e17: am 4ed5f502: am 4d159661: Merge "Revert "PreferencesFragment showing the breadcrumb area in single pane mode."" into klp-dev

* commit 'dbab7e1794f91e3dc4b0617df6fb59183c7349e5':
Revert "PreferencesFragment showing the breadcrumb area in single pane mode."
c6db9c3b371ed8a90fa064f0487440d8a1d8bd46 21-Nov-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Revert "PreferenceFragment showing the breadcrumb when not needed."" into klp-dev
8fc552e695701ff9bc64d5adca0f06a47f0f9f37 21-Nov-2013 Svetoslav Ganov <svetoslavganov@google.com> Revert "PreferenceFragment showing the breadcrumb when not needed."

This reverts commit 7db97b0a29c613afb78c2734bf2504324a71963d.

Change-Id: Iefe9807fd75baf04e61ec59b508e438320c80fe3
referenceActivity.java
68e7f13e2259d290d8e40839427f8d8de66eafd3 21-Nov-2013 Svetoslav Ganov <svetoslavganov@google.com> Revert "PreferencesFragment showing the breadcrumb area in single pane mode."

This reverts commit 2b8795a9db2d494c38d34fd113a9153880a555c0.

Change-Id: If8dcc7190cbe66af09945d8b23a3e1d8fd791b1d
referenceActivity.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
referenceCategory.java
referenceFrameLayout.java
referenceInflater.java
referenceScreen.java
26ae3286c3368a48d2a30f8016ebab6861786ec2 12-Nov-2013 Svetoslav <svetoslavganov@google.com> am ebda68bf: am 52dedb89: am 512c722f: Merge "PreferencesFragment showing the breadcrumb area in single pane mode." into klp-dev

* commit 'ebda68bf844d4b5b75a01317b45ee04041e726e3':
PreferencesFragment showing the breadcrumb area in single pane mode.
08432a419b83fd22fe43d921c2f9d9f289e3ea3b 12-Nov-2013 Jeff Brown <jeffbrown@google.com> am fa0d9c2f: am 02b77575: am 1cdbbb1e: Merge "Changes to support new screen cast settings screen." into klp-dev

* commit 'fa0d9c2fa8e5c2c73bd36688784f1e44eb08635b':
Changes to support new screen cast settings screen.
2b8795a9db2d494c38d34fd113a9153880a555c0 12-Nov-2013 Svetoslav <svetoslavganov@google.com> PreferencesFragment showing the breadcrumb area in single pane mode.

If the PreferenceActivity is running in a single pane mode we are
not showing the headers and the breadcrumb area. However, when this
activity is restarted and has a saved state to restore we are trying
to use headers even in a single pane mode. As a result the breadcrumb
area is shown and the content is shifted to the bottom with an empty
space at the top. This change ignores the saved headers from the
saved instance state in a single pane mode. Note that in such a case
these headers are null anyway as we do not use them.

bug:11242762

Change-Id: I2828bc82762695d9c93fb4ca43933598a9b12b87
referenceActivity.java
75af171006ee80aaf7cfb56ded1378afe0084cca 11-Nov-2013 Jeff Brown <jeffbrown@google.com> Changes to support new screen cast settings screen.

Fixed the Preference ordering code to consider the case where
two preferences might have the same order. In that case, it
falls back on the title to disambiguate. Previous behavior was
undefined (and technically not stable).

Expose the wifi display device address.

Perform wifi display scans every 10 seconds instead of every 15
to improve reponsiveness.

Make sure to define routes for wifi displays that we are connecting
to even if they are not yet paired. Simplified the logic for
adding and removing these routes to avoid possibly getting out
of sync and leaving stale routes behind.

Fix wifi display notification icon.

Bug: 11257292
Change-Id: I8ac15fb17d83758c0bdce80399e12723c367b83c
reference.java
2dc3477e7faf34aedbb40dd223083a8a5cadfecb 05-Nov-2013 Svetoslav <svetoslavganov@google.com> am 109c0a21: am b1dac2f4: am 517220b4: Merge "PreferenceFragment showing the breadcrumb when not needed." into klp-dev

* commit '109c0a21938cbab8ae1bde594339cbdf338cb559':
PreferenceFragment showing the breadcrumb when not needed.
7db97b0a29c613afb78c2734bf2504324a71963d 01-Nov-2013 Svetoslav <svetoslavganov@google.com> PreferenceFragment showing the breadcrumb when not needed.

The breadcrumb section is used for a single pane mode for showing
the current user location. The breadcrumb should not be shown if
its title and subtitle are empty. The code in PreferenceActivity
onCreate updates the breadcrumb with the title and subtitle in
a single page mode but does not hide it if they are empty. This
change fixes that.

bug:11242762

Change-Id: Ib1ba9e8afd9d0ab2e85d78a65ca7c18489464f6d
referenceActivity.java
d94c31d13a8d7f685ecb91196314d53b6925589e 24-Sep-2013 Amith Yamasani <yamasani@google.com> am 32a2775e: am 85f77c2b: Merge "Unmarshall PFDs properly when hand-crafting interface stubs" into klp-dev

* commit '32a2775e529d13dfd34273a3b4af5151435720b2':
Unmarshall PFDs properly when hand-crafting interface stubs
c2be0d61830dd867f3092923e149e0cc251cdfc5 23-Sep-2013 Amith Yamasani <yamasani@google.com> Unmarshall PFDs properly when hand-crafting interface stubs

ParcelFileDescriptors now carry an optional socket fd to communicate
close events. So, make sure that the correct creator is called when
reconstructing parceled PFDs.

Bug: 10759966
Change-Id: Ic6b9ffb8cb7af5f3a12440def595f74682231866
referenceActivity.java
599d2a49e84bf0a4ee752e263a2c29d2ae942c3e 16-Sep-2013 Alan Viverette <alanv@google.com> Fix default style attr in DialogPreference subclass constructors

BUG: 10751709
Change-Id: Ia7fa91e52881b46d39711d2adc43330014234a55
ialogPreference.java
ditTextPreference.java
istPreference.java
ultiCheckPreference.java
ultiSelectListPreference.java
eekBarDialogPreference.java
a927fb61694df52459e44a0298e91cf63cffc2ae 10-Sep-2013 Amith Yamasani <yamasani@google.com> am 23d6b7b3: am 618f8cc5: Merge "Don\'t leave space for summary text if it\'s an empty string" into klp-dev

* commit '23d6b7b36096eef53f819ee5eee0aba3beecde67':
Don't leave space for summary text if it's an empty string
618f8cc5dbb6dff03ad3270d6b948b1ef90c5dd6 10-Sep-2013 Amith Yamasani <yamasani@google.com> Merge "Don't leave space for summary text if it's an empty string" into klp-dev
617feb99a06e7ffb3894e86a286bf30e085f321a 10-Sep-2013 Alan Viverette <alanv@google.com> Add View constructor that supplies a default style resource

Also updates the constructor of every class that extends View.

BUG: 10676369
Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
heckBoxPreference.java
ialogPreference.java
ditTextPreference.java
istPreference.java
ultiCheckPreference.java
ultiSelectListPreference.java
reference.java
referenceCategory.java
referenceFrameLayout.java
referenceGroup.java
ingtonePreference.java
eekBarDialogPreference.java
eekBarPreference.java
witchPreference.java
woStatePreference.java
olumePreference.java
b25158886bba80ca8e03bc252121f5f89fb80f46 09-Sep-2013 Amith Yamasani <yamasani@google.com> Don't leave space for summary text if it's an empty string

Bug: 10639567
Change-Id: Ifeb71ea0779a86e39fe55fb0bc6cd267dba4a92e
woStatePreference.java
a5001b94a01b3c7547b688a5091e2fdf989640d6 06-Sep-2013 Amith Yamasani <yamasani@google.com> Throw an exception if isValidFragment is not overridden for KK targets

Bug: 9901133
Change-Id: I8dfe43aa90546e351f25c94579a34bb87658bf08
referenceActivity.java
0ccef4d00357275f3a492e10f4e88aaf4d9deec6 06-Sep-2013 Alan Viverette <alanv@google.com> Merge "Apply implicit parent dependency when adding to PreferenceGroup" into klp-dev
651b4249b9c0648d9238ed2dab6e9ad1aa64ca43 05-Sep-2013 Alan Viverette <alanv@google.com> Apply implicit parent dependency when adding to PreferenceGroup

BUG: 10493706
Change-Id: Iba741d8dd4e72bc5aef5c033e42a9ba4fb0c523b
referenceGroup.java
e8222dddaf2e3da14380101e818d4254899e0c0d 05-Sep-2013 Chet Haase <chet@google.com> Change build version from KEY_LIME_PIE to KITKAT

Issue #10631619 Change build version to KitKat

Change-Id: I6ad13f6169ad74204078d36929479998b498ad8b
referenceActivity.java
d3927bd0358714fa440cbc0d9595a25b0f571562 21-Aug-2013 Alan Viverette <alanv@google.com> Merge "Allow recycling of Preferences in com.android.* packages" into klp-dev
791b37e0d9375789c2930ed170d202ea728390fd 21-Aug-2013 Alan Viverette <alanv@google.com> Allow recycling of Preferences in com.android.* packages

Refactors hasSpecifiedLayout to canRecycleLayout for readability's
sake. All boolean references to the method have been inverted.

BUG: 10079104
Change-Id: Ie6beda9f0b837f889a6cc6a80377349e98cc4883
reference.java
referenceGroupAdapter.java
02f56803632051c202407cec01406781993752a1 20-Aug-2013 Alan Viverette <alanv@google.com> Add implicit parent dependency for Preferences

Also removes unused dependency change listener interface.

BUG: 10117838
Change-Id: I03f0eb37e7ba69942f7997a8b32adb38a3dee0bd
nDependencyChangeListener.java
reference.java
referenceCategory.java
referenceGroup.java
cf638aceef9515728cac93a42bce552c12206142 05-Aug-2013 Amith Yamasani <yamasani@google.com> Use more styles for preferences to allow single pane 10"

Change-Id: Ib3b1032ca45f22bca08546eb65b2c42bc1975bdf
referenceActivity.java
5b8f93047ca20f7999343362b5f6eac1d37f967c 05-Aug-2013 Amith Yamasani <yamasani@google.com> Merge "Don't check for valid fragment when switching to another fragment"
a47372c8617e8817d5b57aa6ed905017e7573224 05-Aug-2013 Amith Yamasani <yamasani@google.com> Don't check for valid fragment when switching to another fragment

Bug: 10184429
Change-Id: I09b39682d907a1cd7ce140e0be0faaddfaba6bd1
referenceActivity.java
20915daf064f19587b8b9123de5849f91e78e59b 01-Aug-2013 Amith Yamasani <yamasani@google.com> Fix javadoc for new API

Change-Id: I31d3eb877552029a346f956414227aac42e5582b
referenceActivity.java
364ed4dda42882b600dce48319881ff58464fced 26-Jul-2013 Amith Yamasani <yamasani@google.com> PreferenceActivity Fragment security

Provides a way for PreferenceActivities to verify that they
aren't being launched with Fragments not meant to be attached to
them. Default implementation will fail verification for apps built
with KLP. This will not affect apps built for earlier targets.

Also, make sure that the class being instantiated is a Fragment and
not some random class.

Bug: 9901133

Change-Id: I564cd5168eabcadd7594ea8011e2081ebebfe063
referenceActivity.java
eb2fded0d3fc95ca887b99149585fd1db8840346 24-Jul-2013 Alan Viverette <alanv@google.com> Merge "Fix handling of ListPreference.setValue()"
94c02a1a1a6d7e6900e5a459e9cc699b9510e5a2 23-Jul-2013 Alan Viverette <alanv@google.com> Fix handling of ListPreference.setValue()

Previously, setValue() was not calling notifyChanged(). This
prevented the summary from updating correctly. Now it calls
notifyChanged() the first time it's called and when the value
actually changes.

BUG: 9987962
Change-Id: I02dd4be6bde2969f39d30921a62a7ba908128e0e
istPreference.java
aca105cfb4479cf8635baed699daf803648a3fed 13-Apr-2013 Eric Laurent <elaurent@google.com> VolumePreference: fix audio sample playback

Handle audio sample start/stop request in a handler
to avoid race conditions.

If a sample is active, do not ignore playback requests but
schedule a second attempt one second later. This is to avoid
ignoring a playback request if a sample is short or about to finish.

Bug: 8176776.

Change-Id: If2d5f7d469eba345af3f4771067a076a56f4bfed
olumePreference.java
49bdc1681e58bd01174673042c42f65bb34943dd 18-Jul-2013 Amith Yamasani <yamasani@google.com> Ignore list item clicks if PreferenceActivity is paused.

Since list item clicks are delivered asynchronously, it's possible to
get click callbacks after the activity has already paused.

This should actually be blocked further up the event chain, ideally,
so that the list selection state is not out of sync with the application.

Bug: 9752185
Change-Id: I1058d64cba98e9093b462e2e581bdbccdace1420
referenceActivity.java
1dc3b790df61aa95cb68da390045249c59049fcd 13-Jul-2013 Adam Powell <adamp@android.com> am 4b8cc94c: Merge "PreferenceActivity should not leave message in looper when destroyed"

* commit '4b8cc94cc67d760e724c56aee9301d1bcc2bbe89':
PreferenceActivity should not leave message in looper when destroyed
1ebf13ef20fea56f55094a3744c9813500a55b17 16-Nov-2012 Hiroaki Kuriyama <hiroaki.kuriyama@sonymobile.com> PreferenceActivity should not leave message in looper when destroyed

When a PreferenceActivity is destroyed as soon as created,
there is a problematic case that messages for the activity are
sometimes left in the looper even after the activity is destroyed.
For example, by clearing user data of the selecting IME on
Settings apk, com.android.settings.Settings is re-launched
2 times successively. (Destory->Create->Destroy->Create)
Due to the left message, application crash can happen.
(NullPointerException at BackStackRecord.getBreadCrumbTitle())

Two cases have been found to observe this issue.
[Case 1]
1,Launch IME in advance.
2,Go to Settings >Apps > All and choose the IME package.
3,Click "Clear data"
4,Application crash occurs on com.android.settings.
[Case 2]
1,Go to Settings > Language&input > Language.
2,ListView dialog to choose language is shown.
3,Rotate the tablet 180 degree so that 90 degree rotation occurs twice.
4,Application crash occurs on com.android.settings.

Change-Id: I5ce36ea7a40ab7bc7737b7dca6641a4c3d77a480
referenceActivity.java
43861f9de965593340f6a63c270120a7f1a8701c 26-May-2013 Dianne Hackborn <hackbod@android.com> am f46449ab: Merge "Avoid IllegalArgumentException in Preference.java compareTo()"

* commit 'f46449abedcba2167fffa8ba8dc2f6d7a6d410b9':
Avoid IllegalArgumentException in Preference.java compareTo()
b2e61e44e9cd1fa2974784e819f13b5ce72088f5 04-Feb-2013 Carsten Hauge <carsten.hauge@sonymobile.com> Avoid IllegalArgumentException in Preference.java compareTo()

In some situations the collection.sort() algoritm fails in compareTo()
with a: java.lang.IllegalArgumentException: Comparison method violates
its general contract!, due to a more strict validation of the compare
contract.
This strict validation was introduced in java 1.7.
See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6804124
This fix should prevent the sorting from crashing.

Change-Id: I64230e7f62f83c99d7a6274964bb2988ae843826
reference.java
19470ecc0f3fa4f95fd55db722cb8e43e956da5e 12-Feb-2013 Dianne Hackborn <hackbod@google.com> Fix issue #6595555: deal better with fragmentless headers.

If you constructed a preference activity whose first header
didn't have a fragment, this would crash in two-pane mode
because it would try to use that header as the initially
selected header but not have a fragment to show.

We need to have a fragment for whatever header we switch to,
so the code now looks for the first header with a fragment
as the initial header.

Also added some error checks to throw more descriptive
exceptions on bad headers -- when there is no header at all
with a fragment, if the app tries to manually switch to a
header without a fragment.

Change-Id: Ia84221fcb2fe5755bb674e0606ac2a1fcde4cdc9
referenceActivity.java
37ae5586761993a5e9cede6f6c41609b5c63cc29 26-Oct-2012 Justin Koh <justinkoh@google.com> Expose PreferenceManager constructor / Preference#performClick

Expose PreferenceManager constructor and Preference#performClick so they can be
used by other UIs beyond the standard PreferenceActivity. Marked @hide so public
API is not affected.

Change-Id: Ieb4aecba5f86e40ff70f2b252458602e6b9ad1ee
reference.java
referenceManager.java
3ec7bac9a0c262882d6ca2985f4dc3ecc42489c0 04-Oct-2012 Amith Yamasani <yamasani@google.com> No breadcrumbs for single-pane preferences

Bug: 7274530
Change-Id: I6a4b6321a72ad38a757098ea470ac58d4294639b
referenceActivity.java
c1b07211b8a2a1eebefa8e5403ca7b2c6ccdccc6 10-Aug-2012 Adam Powell <adamp@google.com> Don't assume a default of 'false' for TwoStatePreference

TwoStatePreference would treat a default value of false as having no
effect since it matched the initial value of the internal field. This
caused asymmetric behavior around persistence and listener
notification when the default was true (persisted) vs. false (not
persisted).

Standard behavior for most Preferences is to persist the default
value. Make TwoStatePreference (CheckBoxPreference and
SwitchPreference) follow this pattern.

Bug 5722690

Change-Id: I8b3cf55efc5dfd573b511913b48ced017f0432d8
woStatePreference.java
cdd0c59a0108036895796dcb2bea69ff5eef26ca 27-Jul-2012 Scott Main <smain@google.com> docs: add links to new Settings dev guide

Change-Id: I04444ec0c4c1c278569b64f15cbbc7e8c1c623cd
reference.java
referenceActivity.java
referenceCategory.java
referenceFragment.java
referenceGroup.java
referenceScreen.java
bbb3f41e26ac5a996913907dc63786146132b4ce 10-Mar-2012 Scott Main <smain@google.com> docs: add Settings dev guide;
a few changes to javadocs

Change-Id: I2d671aafe91e4c6e224e2a556a60dce9f93f11ae
referenceManager.java
423d48bbba074ee1d0d7b09f4e9e074a6944edba 20-Jun-2012 Amith Yamasani <yamasani@google.com> Add a private method to retrieve the header list from PreferenceActivity

This is required by Settings app to be able to update the header list
if the accounts list changed.

Bug: 6685701
Change-Id: If27f83ec86fe1f3519a6e25de4e4fe4864133dc8
referenceActivity.java
ade026f749af1871563417e323684c02a55edc4e 17-May-2012 Amith Yamasani <yamasani@google.com> Avoid launching dialogs twice from double-clicking a preference.

Bug: 6500628

Only create the dialog if another one doesn't already exist.

Change-Id: Ie9be06a58c369299bcb67526e668785e6735a307
ialogPreference.java
cd9ea08d9cb68004b2d5f69302cddf53dc034e7b 16-May-2012 Amith Yamasani <yamasani@google.com> Fix amnesia problem in MultiSelectListPreference.

Bug: 6478079

Pointer assignment instead of copy was resulting in mValues being cleared
on next launch, since mValues became the same pointer as mNewValues.

Change-Id: I91014948e4f48056474b3ab31aab6d35e0ad69ca
ultiSelectListPreference.java
8c78752f2bf786ca3e6f45b9dc6955d3b4bba59c 14-May-2012 Eric Laurent <elaurent@google.com> Implement new volume display policy.

Whenever a stream type is muted, the progress bar in volume panel
is at 0.
If a stream is muted by ringer mode and does not control ringer mode,
the progress bar is disabled.
Pressing VOL- when in vibrate or silent mode resets the last audible
volume of ringtone stream (music strem on tablets) to 0.

VolumePanel implementation:
- Always prefer AudioManager APIs over AudioService APIs when available on both.
- Do not use AudioManager.shouldVibrate() (deprecated).

Change-Id: I57fcb19ada4e8d729b6b41d668496562ebe340c3
olumePreference.java
83e6eb11d7ec24e7c363beccab0806989ad89ec5 08-May-2012 Dianne Hackborn <hackbod@google.com> Support for changing traces from development settings.

Publish information needed to build UI, fix SystemProperties.getLong()
to be able to read this property, fix some issues in
MultiCheckPreference.

Change-Id: I10c8ff84a167fdb42f6c93500201b78b844cfb8b
ultiCheckPreference.java
7746f910656ce6e811853f4062108e9798063337 27-Apr-2012 Dianne Hackborn <hackbod@google.com> New preference for multi-selection check boxes.

This will be used for a new settings preference.

Change-Id: Ia748cd3e0e8b80ff40942fe2978bd27ce929499a
ultiCheckPreference.java
f9638a4aeecf23079fa74618ad3c285a8a2abfda 01-May-2012 Amith Yamasani <yamasani@google.com> Fixes PreferenceScreen padding and scrollbar position.

Bug: 6399996
Changed the scrollbarStyle for tablets

Bug: 6405440
Inflate the listview from a layout with padding.

Change-Id: I838bb073ee2f0e23ac7163cc632679278dbccf05
referenceScreen.java
0f1c3af76b719a728ed567435ea4db30a33364d2 04-Apr-2012 Jeff Sharkey <jsharkey@android.com> Hide Preference title when empty.

Change-Id: I1c1d73f5a4647657c7da65c72192fbac061fe259
reference.java
2d43d283fc0f22b08f43c6db4da71031168e7f59 30-Sep-2011 Amith Yamasani <yamasani@google.com> Handle the case of Preference lists that have header views inserted at the top.

Without this change, wrong Preference is returned when you select one.
Subtract the number of headers from the index before querying the adapter.
Needed for:
Bug: 5203189

Change-Id: Iba7277789ebbd7e3e9954931b1ea06c7e34f3c15
referenceScreen.java
72e6bece43ca2778d8101a6d4dede2a12e0d47e8 23-Sep-2011 Amith Yamasani <yamasani@google.com> Launch nested preferences with the same theme as parent activity.

Bug: 5351628
Change-Id: Id67b81558bc6e010d6f024cdb8117424aa6b62f0
referenceScreen.java
c82c7a5403584ccab08b623566de837b2a3dd952 28-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5067075 - missing scrollbar when entering long signatures

Let DialogPreferences decide their own IME adjust mode as normal
rather than forcing adjustPan.

Change-Id: Ib53e9f648342430640469a0682308b056e7ef991
ialogPreference.java
94f67e2af607df29a1c47e43ef6570fea46aa2b4 24-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5205275 - SwitchPreference doesn't allow Switch to slide back
and forth.

Also have the SwitchPreference's Switch widget's onClick listener
toggle the switch rather than invoke the preference's own onClick
method. This will allow subclasses to assign different behavior to
clicking the preference itself if desired.

Change-Id: I97e3b7a786e9f0e8bdc03c0ed6001caa7dcd991b
witchPreference.java
ce4a193ea8056da09d7fea64aeb4e4bc05d11d3c 08-Aug-2011 Jeff Sharkey <jsharkey@android.com> Preferences padding and scrollbars to match spec.

Adjust preferences ListView to use direct padding instead of applying
to outer parent. Also display scrollbars outsideOverlay on small
screens.

Change-Id: I750c53d2452d8842d487a091075c32f009f2c2fc
referenceActivity.java
referenceFragment.java
5d36715a76e275fe25f0fe65530c6aae3852d914 13-Aug-2011 Amith Yamasani <yamasani@google.com> am 648dc03c: am 4dbd1bc6: am 5f074067: am 712a8cca: Merge "VolumePreference.onActivityStop only stops playback"

* commit '648dc03cd038a726b25929f9ffc142eb16e891e8':
VolumePreference.onActivityStop only stops playback
648dc03cd038a726b25929f9ffc142eb16e891e8 12-Aug-2011 Amith Yamasani <yamasani@google.com> am 4dbd1bc6: am 5f074067: am 712a8cca: Merge "VolumePreference.onActivityStop only stops playback"

* commit '4dbd1bc6ae84cb4d0cd28922e917473ec6e53517':
VolumePreference.onActivityStop only stops playback
023f8e00fdcd8aa1fd69dae9d2cf3a10dfa7b373 11-Aug-2011 Amith Yamasani <yamasani@google.com> Pass in the title of the preference as a title for the ringtone picker dialog.

Bug: 5135537
Change-Id: I988c4c6b800466a5f28e41b452a91a5424c7d58b
ingtonePreference.java
7650259a597dd24137420d32acc35efc44db381e 29-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Improving accessibility feedback for two state widgets.

1. Added population of sensible text for the state of the
two state controls such as CheckBox, Switch, etc. This
is important since if they are in a layout manager which
fires an accessibility event there should be a description
of the widget.

bug:5092552

Change-Id: Ie3ca955653563496b84db379ae23a23fe88089a8
heckBoxPreference.java
witchPreference.java
woStatePreference.java
a28a16d1c2b58999d757a4cd3bc66a2f3499a2eb 28-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Updating the data base upgrade/creation code for the new touch exploraion setting.

1. Update the database creation/upgrade code to take care of the new setting
to enable touch exploration.

2. Made the tocuh exploration settings persistent to the cloud.

Change-Id: Ie24e9184b4a21869432d11d207cb6464fadbac3b
woStatePreference.java
2182a3b6422f367d84384e25006ba201c4cd233b 24-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "TwoStatePreference does not fire click events."
5c3ea06a7a5558509545450ccc465d695bd1a2e6 23-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> TwoStatePreference does not fire click events.

1. Event were send in onBindView but since we have fixed the bug
of unattached views firing accessibility events and there is
no guarantee that the view is attached in onBindView no events
were sent. Now posting a runnable so on the next run the UI
tread will send the event i.e. after the view is bound and
attached.

bug:5008841

Change-Id: I4ed914f7fb65d6896f0c55e7c46e6508d2b2f11f
heckBoxPreference.java
witchPreference.java
woStatePreference.java
34905a9808a63e8b671b8e9c4a20c6e1ca470b36 22-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5021385: Title of any Settings subscreen changes...

...to "Settings" when orientation changes

Change-Id: Ib6387b9813329174013452bcdf323cedc4b29664
referenceActivity.java
595d2bdc16885e4e182527204e62c4e375a3e53a 16-Jul-2011 John Reck <jreck@google.com> Implement SeekBarPreference.onGetDefaultValue

Bug: 5036325

Change-Id: I1db0ed3809b862a547e5fda40027852f8b46aa38
eekBarPreference.java
31e92e4f19367bd791c1d962a2627f59eab2ab86 21-Jun-2011 Gilles Debunne <debunne@google.com> Merge "Support for arbitrary ListAdapter in PreferenceActivity."
014fea2a663ab0bc2d80a6293b84b2647a4a1895 16-Jun-2011 John Reck <jreck@google.com> Inline SeekBarPreference

Dialog-based SeekBarPreference renamed to SeekBarDialogPreference
New inline SeekBarPreference added

Change-Id: I7a5d8f7aa554c4af4086a9bcc74cf07879c8523c
reference.java
referenceFragment.java
eekBarDialogPreference.java
eekBarPreference.java
olumePreference.java
39725ac96b68f7d2d25d10662bd9ad3189fdab77 15-Jun-2011 Gilles Debunne <debunne@google.com> Support for arbitrary ListAdapter in PreferenceActivity.

Now relies on the adapter defined using setListAdapter instead of relying
on the original mAdapter field that was hiding the one defined in ListActivity

Change-Id: I6bab7b858d215bf6a33b3666528ba0f463dfec45
referenceActivity.java
0daf40ca9a764088c3eb59be956674ac67b91384 15-Jun-2011 Amith Yamasani <yamasani@google.com> am 2bcd9c6e: am eb5e633a: am 608a200d: Merge "Stability fixes for PreferenceFragments." into honeycomb-mr2

* commit '2bcd9c6e7b4fe6c465811e9b8ac48acec23cb341':
Stability fixes for PreferenceFragments.
c56fc753e2e2d35221a1a4df353a435098268ec4 15-Jun-2011 Amith Yamasani <yamasani@google.com> Stability fixes for PreferenceFragments.

Unregister the click listener as early as possible, so that clicks
don't get delivered after the activity is detached.

Bug: 4599586

This should also fix: 4603030, 4601105, 4598715, 4598712.

Change-Id: I7bcff719bed14ea61b482bd6d29ae1fa5e322e41
referenceFragment.java
be0a4535053bbfdebd215e244b154ac810fd8edc 30-Nov-2010 Adam Powell <adamp@google.com> Add SwitchPreference

Change-Id: I073e9bfba8c4e1a625c27f976f71ea56a81ba20f
heckBoxPreference.java
witchPreference.java
woStatePreference.java
405c1af75607fafdb1d6faf34e13e032e4934787 26-May-2011 Amith Yamasani <yamasani@google.com> Manual merge. Preference activity changes to work on smaller tablet screens and phones.

Padding around fragments and to the left of preference items
adjusted for different display sizes.

Change-Id: I2d29e5525c381092a3f1d2fb1265ce07db893d78
reference.java
referenceActivity.java
referenceFragment.java
6ea08998eecb97e8ebc26e7c84869f1db794f4dc 25-May-2011 Amith Yamasani <yamasani@google.com> More preference item visual adjustments for smaller tablets. DO NOT MERGE

Use medium text size for locale picker.
Hide icon region if there's no icon.

Bug: 4462313

Change-Id: I8062646f31bfec753bcd476f54c8ab5b66375b5e
reference.java
1d2385d08a9e706243fdf9399b417ad7e24c19ba 20-May-2011 Amith Yamasani <yamasani@google.com> DO NOT MERGE. Preference activity changes to work on smaller tablet screens.

Breadcrumbs move to the action bar on certain configs.

Padding around fragments and to the left of preference items
adjusted for different display sizes.

Change-Id: Ie899f9742f4ebd7044f158b1c7db06df82ad2d75
reference.java
referenceActivity.java
ece60fb243f6d1dcee24f5c8f925f449e0514f7e 08-Apr-2011 Justin Koh <justinkoh@google.com> Framework: fixed bug in multiselectlistpreference.

Fixed bug in multiselectlistpreference where the entries were being used instead of the entry values. This change make the behavior match the documentation.

TESTED = runs on M4 with test app.

Change-Id: Ib337f78399e032ef50aabce0fb8aa38251d73c18
ultiSelectListPreference.java
e72f237defd9956a7e2d2e2bee8cd2558c3f83db 16-Mar-2011 Dianne Hackborn <hackbod@google.com> More work on making prefs work well on small screens.

Tweak padding so layouts now look decent, a few extensions so that
the correct title can be shown.

Change-Id: Ieace16bf4962d66564c6e2f67fb588e582943850
reference.java
referenceActivity.java
referenceFragment.java
437c2c1620d0a485a4f81fdb0aaf706d89b865e7 16-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Add new PreferenceActivity API for settings."
b1a6e439f63e4fa2b07a4905f00b6badf58e6420 16-Mar-2011 Dianne Hackborn <hackbod@google.com> Add new PreferenceActivity API for settings.

Need to redirect to a different activity when on non-xlarge screens.

Change-Id: I8cf4793b117325604d29ecc4478dbf10322a4689
referenceActivity.java
1686e9afd4addf1655bf55b6d815e3f51934b654 15-Mar-2011 Svetoslav Ganov <svetoslavganov@google.com> CheckBoxPreferences do not fire accessibility events

bug:4091160

We no longer allow not shown views to fire accessibility
events. Therefore, CheckBoxPreference can no longer ask its
associated checkbox to fire an accessibility event because
the latter is not attached to the view hierarchy
(i.e. not shown) by the time the CheckBoxPreference has a
chance to send an accessibility event. Instead the
CheckBoxPreference itself is responsible for firing the event.

Change-Id: Ia742882b13bf6c441cc76fa1e84b47a55cee601c
heckBoxPreference.java
cf407ad88bef3bc640489b300f23eaa8ea0b724e 11-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issues #4087362 and #4087356

4087362: Provide a safer way to call DialogFragment.dismiss()
4087356: PreferenceActivity.invalidateHeaders() can cause
IllegalStateException: Can not perform this action after onSaveInstanceState

These are very safe; the first is just a new public API that
allows you to use an existing feature in DialogFragment, and the
second just uses the version of commit that avoids the failure if
happening at a point where the operation would be lost if restored
from the last state (which is no big deal for preferences).

Change-Id: I53971c9fb1efdcd599694cdcd4585b81afc156b8
referenceActivity.java
81d860013c7eeb96a09574301485d3e405ce03bc 03-Mar-2011 Amith Yamasani <yamasani@google.com> Fix a race condition when entering and exiting a preference fragment quickly.

Bug: 3413715

Fragment was going through STARTED/RESUMED/STARTED/CREATED very quickly and
bindPreferences() was a delayed call that happened after mView was nullified.
Removing the MSG_BIND_PREFERENCES when view is destroyed.

Change-Id: Iec43102c004a266c412b993f17e1a8c1699fb0b1
referenceFragment.java
0d47ac11764b89431777c3a84efd5fa9c17130dc 04-Feb-2011 Jim Miller <jaggies@google.com> Merge "Fix 3419077: Allow subclasses to change SeekBarPreference action buttons." into honeycomb
0f31fe096856b957d1a0ed96541d7731dcc14177 04-Feb-2011 Eric Laurent <elaurent@google.com> Issue 3371080: fix volume update in mute state.

VolumePreference should take the stream mute state into account
when updating the progress bar if a change is received by
the content observer

Change-Id: Ia1a8af9d4cc349d2d57753d865e8d2e58daf04f1
olumePreference.java
4c8aafe300fd61527a4cb89669e804b843f21257 04-Feb-2011 Jim Miller <jaggies@google.com> Fix 3419077: Allow subclasses to change SeekBarPreference action buttons.

Change-Id: I2c624c3693fe06d9d3db3c203c7d4fc7a80b79d9
eekBarPreference.java
a458868fd432d4b106f2beddec8bdb2a65808fdb 03-Feb-2011 Samuel Asteberg <samuel.asteberg@sonyericsson.com> VolumePreference.onActivityStop only stops playback

In VolumePreference.onActivityStop, the cleanup has
been replaced with only stopping ringtone playback
for the seekbar. This will avoid problems when switching
between applications that previously lead to inconsistencies
in the ring volume dialog.

Change-Id: Ia751fe0893610c4f5650eb07705481400642a84e
olumePreference.java
998127c8049f22cb6f74483f11d693bfd7c59511 01-Feb-2011 Amith Yamasani <yamasani@google.com> Enable subclass of SeekBarVolumizer to provide a custom file for sample playback.

Bug: 3409194
Change-Id: I8a408a69fd14cf9058afe01ac5c46d0f5afc1503
olumePreference.java
1264c33163146d6088675d197551a63b3f9d360b 20-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3362375 - API REVIEW: remove unused public 'up' id

Fix bug 3362453 - API REVIEW: android.app.ActionBar

Change-Id: I4e0233cd9355a47682bfe7b4a7fda39801586f1a
referenceActivity.java
1560003d4a1a0ce36bb288905a6a317c1fd74b32 18-Jan-2011 Mathias Jeppsson <mathias.jeppsson@sonyericsson.com> Fixing memory leak in PreferenceScreen.

Every time the PreferenceScreen is displayed a new ListView is
created and bound to the adapter. As the same adapter is used during
the lifetime of PreferenceScreen and the listviews never gets
unbound, the adapter will contain a list of unused views. The old view
should be unbound from adapter when we create a new view.

Change-Id: I13e2d0dc79c8ff79b58efa650653e3f84c6e53c5
referenceScreen.java
190acd4dd0ffdadccd3857740e7831143ac2a496 18-Jan-2011 Mathias Jeppsson <mathias.jeppsson@sonyericsson.com> Fixing memory leak in PreferenceScreen.

Every time the PreferenceScreen is displayed a new ListView is
created and bound to the adapter. As the same adapter is used during
the lifetime of PreferenceScreen and the listviews never gets
unbound, the adapter will contain a list of unused views. The old view
should be unbound from adapter when we create a new view.

Change-Id: I13e2d0dc79c8ff79b58efa650653e3f84c6e53c5
referenceScreen.java
327fbd2c8fa294b919475feb4c74a74ee1981e02 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix a bunch of API review bugs.

3362464 API REVIEW: android.content potpourri
3362445 API REVIEW: Fragment transaction stuff
3362428 API REVIEW: Fragment stuff
3362418 API REVIEW: Loader stuff
3362414 API REVIEW: android.content.pm.ActivityInfo

Change-Id: I6475421a4735759b458acb67df4380cc6234f147
referenceActivity.java
db7f38673c33ba55801019007ff18fa4c57f75e0 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Start renaming FragmentTransaction.openTransaction() to beginTransaction()." into honeycomb
48e7b458694acdf3a4fc58e62437f1dbc4f29d83 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Start renaming FragmentTransaction.openTransaction() to beginTransaction().

Change-Id: Ib4a6d824b33cca699b7b25159c491fb610d5f5da
referenceActivity.java
e494662c9998b9bb06d0850ec9df9239c8803d27 17-Jan-2011 Amith Yamasani <yamasani@google.com> Add back legacy layout for preference framework for compatibility.

Bug: 3184831

Copied holo layouts to *_holo.xml and restored the old layouts for
non-holo (pre-honeycomb) apps to use so that their layout assumptions
aren't messed up.

Change-Id: If4dcef16191a47a4b101da6bfb0c2df1757d1ae4
reference.java
c9ecb73ccdab767e7904232d46b660fdd7a9aad7 14-Dec-2010 Amith Yamasani <yamasani@google.com> Add a way to insert a parent bread crumb so that deep linked settings can navigate up.

Bug: 3236568

This adds a way to insert a title as well as get a callback when that title is clicked.
It is not really on the backstack and clicks must be handled via the listener interface.
referenceActivity.java
3e86040439d030e44eca4da81d0217046fcac55c 10-Dec-2010 Amith Yamasani <yamasani@google.com> Potential fix for Settings screen ClassCast exception on the phone.

Bug: 3273396
Change-Id: I92477dc8d5e864027923c52545069710dff3575a
referenceActivity.java
74402cfe4e780fd5e9848ff384b741c8fc7d945f 09-Dec-2010 Amith Yamasani <yamasani@google.com> Remove the OnItemClick listener when the fragment is destroyed.

Bug: 3228510

This probably fixes a lot of other monkey bugs in Settings.
referenceFragment.java
3c9f519f898f8fc809550199ea823c0225c682a8 09-Dec-2010 Amith Yamasani <yamasani@google.com> Move the breadcrumbs to the right pane.

Bug: 3236568
referenceActivity.java
referenceFrameLayout.java
c57406cdfa1925c3474e87865c51950b76ee0347 09-Dec-2010 Jim Miller <jaggies@google.com> Fix 3148496: Update PreferenceActivity to handle single-pane fragments.

This fixes a couple of bugs I found while updating SecuritySettings.

Change-Id: I9881cff71799ddf3c1d1493c2f7f3bfb31ca7774
referenceActivity.java
referenceFrameLayout.java
9d0718042f7c0a50d825c621f82ce9a92071f07a 08-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issues #3257701 and #3267312

3257701 Preference headers have duplicated "title" and "summary" if
title is not loaded from a resource
3267312 Fragment.onConfigurationChanged doesn't get called

Change-Id: I76e346ba88aa632ebb9aa413a2ce2645ebf357cd
referenceActivity.java
7e06ea80f781b26e17d630ccbb08237be2541f36 06-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3245210 - Bad window style for action modes for light holo dialog theme

Also fixed some issues with the overlay action mode window styles.

Change-Id: Ie4cf43f6ccf720ef0090ca8bd667fb6d78152f93
ialogPreference.java
50ed8294d366412aa739e763f5e53f1e9717c7c6 03-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3201066: Locale change not reflected by settings

Change-Id: I356c7ec021df7a20f52017e0630d341230ea349f
referenceActivity.java
8b2fb60cd49426c77869ddd91cbf4130d337a41c 25-Nov-2010 Mindy Pereira <mindyp@google.com> Preference changes to layouts.

Change-Id: I37366c3465aa1d8d2bd30fb6ae4b821f5f2d5e2d
Additional changes to make the left and right padding
behave the same way as the top and bottom padding.
That is, our default pref screens will automatically
apply the padding and clipToPadding tags. Custom preference
screens will appear as before.
Uses LayoutParams now instead of a specific id.
referenceFrameLayout.java
35c8be065541fc818cc06567acd3c763b5f86056 24-Nov-2010 Mindy Pereira <mindyp@google.com> Use getDimensionPixel size instead of casting to an int.

Change-Id: I907c8be25bd4cf0fefc2bb4e0282db2d136da099
referenceFrameLayout.java
2266b92072b2eda16ef71ed6f3d8811159b756de 23-Nov-2010 Mindy Pereira <mindyp@google.com> Create logic for applying padding only to custom preference layouts

n the case of any standard PreferenceFragment layout, we can
change the list styling to add padding and set clipToPadding to false.
In this case, we don't want extra padding in the parent ViewGroup
(R.id.prefs).
When an app specifies a custom preference fragment layout, we want
to add the previously existing padding styles R.id.prefs.

Change-Id: Idfd77dcbef264c6f5f4121b66fd54c684ad0a288
referenceFrameLayout.java
b65897ba50c76e2110f5b5de455c14ca53d4069b 17-Nov-2010 Amith Yamasani <yamasani@google.com> Adjust preference activity margins and move the widget back to the right side.

Add a new "icon" field to Preference for adding icons to the left of the preference title.
Several screens such as BluetoothSettings and Accounts have added their own custom preferences
just to add an icon to the left. This makes it simpler going forward.
reference.java
3a57fb9e9c4f205ca6bd4f036b3080f92588d16d 16-Nov-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3191573: PreferenceFragment.onActivityResult cannot
launch a new fragment on the same call.

There were some problems with the API design where you could do
things in such a way that a back stack entry that was not at the
top would get popped. Ouch. Hopefully this change prevents that
from being able to happen.

Change-Id: I8cbc952e12ddd231ff6c84b6e9bbf5125f449f04
referenceActivity.java
8bda1c1ef76618ec3e4bd7bb9db44dd325edc629 11-Nov-2010 Amith Yamasani <yamasani@google.com> am f8d2aff4: am db65907a: Merge "Adding pan behavior on preference dialog."

* commit 'f8d2aff41d347e029c9c0b1f51f20c92cd1cce8e':
Adding pan behavior on preference dialog.
f8d2aff41d347e029c9c0b1f51f20c92cd1cce8e 11-Nov-2010 Amith Yamasani <yamasani@google.com> am db65907a: Merge "Adding pan behavior on preference dialog."

* commit 'db65907a2148f053e51f941979f0f7694acd5923':
Adding pan behavior on preference dialog.
ab36acb39941ce981dddda9f9cf4d2d23a56fd26 05-Nov-2010 Dianne Hackborn <hackbod@google.com> Fixe some stuff.

Addresses these bugs:

3061847 - With no headers, PreferenceActivity crashes
2888426 - minor typo in DevicePolicyManagerService.ActiveAdmin.writeToXml()
3159155 - IllegalStateException:"Can not perform this action after
onSaveInstanceState" while dismissing a DialogFragment
3155995 - PopupWindow.showAtLocation does not respect LayoutParams

Also tweak the new fragment APIs to use abstract classes instead of
interfaces as base classes.

Change-Id: I9c0b4337fe0e304b737b5f7c2762762372bb3020
referenceActivity.java
8da35290693d404b482104abc5f696f6cfd58a2c 05-Nov-2010 Amith Yamasani <yamasani@google.com> Added assets for preference panel and adjusted layout margins for new spec.
referenceActivity.java
83681eb6003d69f095547d10bdd96822e30432c2 04-Nov-2010 Andrew Stadler <stadler@android.com> Avoid NPE when reloading headers in single-pane mode

Change-Id: I696102b371566872ab1e6dca7281015da534b83f
referenceActivity.java
b0418da0e7594a8c2164a46985c5f1993632e010 01-Nov-2010 Jeff Brown <jeffbrown@google.com> Add plumbing for volume mute key.

Full support for the volume mute key will be implemented in a
later change.

Bug: 2912307
Change-Id: I98c27d6360f159c8b7447e04b45f442eff87b38a
olumePreference.java
8eb2e244f9b14d946ee587d0b673b866865026c0 01-Nov-2010 Dianne Hackborn <hackbod@google.com> Various PreferenceActivity and related improvement.

This is all about making the preferences implementation better.

Well, mostly all about that.

Change-Id: I8efa98cb5680f3ccfa3ed694a1586de3fb3a9e11
referenceActivity.java
f5cbaeda148aa80470d4100d51e3fb3975843ef2 28-Oct-2010 Amith Yamasani <yamasani@google.com> No animation when tapping on current header in a preference screen.

Bug: 3125427
referenceActivity.java
27da0bf0a38231111cbf6bb7df6c4a0d53b144d8 25-Oct-2010 Amith Yamasani <yamasani@google.com> Fix sub-header height to follow drawable. Floating panels for Preference screens.
referenceFragment.java
f313b9e84132b0003d8163d2e3def8f5e1f8ad83 27-Aug-2010 Peter Eliasson <peter.eliasson.x@sonyericsson.com> Adding pan behavior on preference dialog.

Changed the preference dialog with text input to pan if
the display area is limited. This helps the user to see
the input better.

Change-Id: I12341546f6f82601ac5a2746153255a9b2d49a1c
ialogPreference.java
d532d8d8c16c8b83a75310453d1f9f7197961bbf 12-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am ca1db5ae: am dd644c17: Fallback to SharedPreferences.commit() when no apply() exists.

Merge commit 'ca1db5ae68971779fd8af83c908128849f470ae0'

* commit 'ca1db5ae68971779fd8af83c908128849f470ae0':
Fallback to SharedPreferences$Editor.commit() when no apply() exists.
ca1db5ae68971779fd8af83c908128849f470ae0 11-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am dd644c17: Fallback to SharedPreferences.commit() when no apply() exists.

Merge commit 'dd644c179c1bf47d82d776d7f644e4fc1467159d' into gingerbread-plus-aosp

* commit 'dd644c179c1bf47d82d776d7f644e4fc1467159d':
Fallback to SharedPreferences$Editor.commit() when no apply() exists.
dd644c179c1bf47d82d776d7f644e4fc1467159d 10-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Fallback to SharedPreferences$Editor.commit() when no apply() exists.

Gingerbread widened the SharedPreferences.Editor interface, adding an
apply() method. Most people don't implement this interface
themselves, but a couple apps do.

A few spots in the core framework take a SharedPreferences[.Editor]
from apps, which might be a pre-Gingerbread implementation without an
apply() method. This patch makes sure we never depend on the presence
of an apply() method, falling back to commit() if apply() isn't
available.

Change-Id: I32693ac9227a60b694526a26a30234fb17a40581
reference.java
referenceManager.java
9ff82bf2b33513052500473d0d6d025a80dcecbf 05-Oct-2010 Chet Haase <chet@google.com> Adding next/prev to fragment animations and to PreferenceActivity

Adding a new concept of "next" and "previous" to fragment.s Previously, fragments would
either be placed onto or taken off of the stack, or would just replace the current
fragment. The new next/prev capability gives the ability to run a transition that is
specific to next/previous operations, such as navigating forward and backward in a list.
New next/prev animations may be associated with a fragment replace operation to get the
next/prev animations built into the system (next animates things up, prev animates them
down).

Change-Id: Ia9f3663bac009376420d845b396ac51b8e4d1647
referenceActivity.java
05fbc31ed9c6ac13a7aeddc176f19a5c17217e30 26-Sep-2010 Amith Yamasani <yamasani@google.com> Make the headers pane disappear in no-headers mode, not just the ListView.
referenceActivity.java
82e7bc11342547d1480ef89208ed06943650e201 24-Sep-2010 Amith Yamasani <yamasani@google.com> Fix for Ringtones not being saved when using Preference fragments.

Bug: 2988732

RingtonePreference was calling startActivityForResult on Activity instead
of on Fragment, so the result was not being delivered to the fragment.

Setting a fragment owner on the PreferenceManager instance so that it can
be used instead of getActivity() for launching the intent.

Not exposing any new public APIs at this time.
referenceFragment.java
referenceManager.java
ingtonePreference.java
ed13cde1de86933f64285fa34e3a3aca80994859 18-Sep-2010 Amith Yamasani <yamasani@google.com> Fix attribute parsing of PreferenceHeader_id
referenceActivity.java
c6669ca63299219d815464129dac051ab2404286 16-Sep-2010 Dianne Hackborn <hackbod@google.com> Add API for showing breadcrumbs of fragment back stack.

This adds a simple API to have your back stack automatically
shown as bread crumbs in the action bar. Introduces some APIs
to retrieve the current back stack.

Also fix a little bug in the "activated" state where it was
being propagated down the hierarchy as "selected". :p And from
that, fix the standard colors to be reasonable when in the
activated state.

Finally PreferenceActivity is updated to take advantage of
bread crumbs to show your place in the preferences.

Change-Id: I9d633bedf8d7c6e4ed9b25cb9698faa66c7dd9a4
referenceActivity.java
d0fa371f276fde32d81c037006941bc93da0bb03 15-Sep-2010 Dianne Hackborn <hackbod@google.com> Add a new "activated" state to View.

Use this in ListView and GridView if the top view is not checkable.

This allows PreferenceActivity to now highlight the current heading
that is being shown.

Change-Id: I0d28aded9a61a42962b4aece420ae4058712d963
referenceActivity.java
a21e3da55940e239addd80bf379091a1d85d006f 13-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2967969: Crash rotating screen on "delete account" dialog

- Have PreferenceActivity save and restore its header state.
- Keep track of the current header selection.
- When headers are updated, try to retain the current header selection.

Also fix issue #2995541: Cannot add new contact. We were not allowing
fragment transactions in some cases.

Change-Id: I4aa4c703ed5f4ecf9f425cd7eeea4740c6360ce9
referenceActivity.java
3e449ce00ed2d3b271e50bc7a52798f630973bf1 12-Sep-2010 Dianne Hackborn <hackbod@google.com> Some fragment stuff:

Fix issue #2975886: Make getTargetFragment() survive rotation events with
retained fragments. We now fix up the fragment pointer when restoring state.

Fix issue #2919928: In PreferenceFragment, addPreferencesFromResources() is
not effective when called after onActivityCreated(). Note to self: do not use
a what code of 0. Maybe that should be documented (I'll do it in gingerbread).

Hopefully implement #2992753: DialogFragment.dismiss will NPE if called too soon
(before attached to activity). We now keep track of the FragmentManager
separately from the activity, and set that as soon as the fragment is part of a
transaction.

Investigate issue #2988876: NPE when device orientation is changed. The NPE is
because of the app trying to do a fragment transaction in onPause(). This is
fundamentally not viable, since (a) the activity will be gone before we ever
have a chance to process the message to commit the transaction, and (b) even if
we did try to commit the transaction earlier, this would be done after
onSaveInstanceState() and thus not work in cases where the activity gets killed
in the background. So instead, we'll just throw an immediate exception if you
try to do this.

Change-Id: Iea62b50eb79f066af2471fce86836d073398f4f7
referenceActivity.java
referenceFragment.java
4f3c5589c8cfa797153d50aaff68eaf874048a9c 03-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 9eb32c96: am a2f2141c: Merge "More SharedPreferences commit() -> apply() changes." into gingerbread

Merge commit '9eb32c96c872512c8aedc8627a4b96e9ea2a1a28'

* commit '9eb32c96c872512c8aedc8627a4b96e9ea2a1a28':
More SharedPreferences commit() -> apply() changes.
9eb32c96c872512c8aedc8627a4b96e9ea2a1a28 03-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am a2f2141c: Merge "More SharedPreferences commit() -> apply() changes." into gingerbread

Merge commit 'a2f2141c84923e34e003bec92b7435ea79b02ee8' into gingerbread-plus-aosp

* commit 'a2f2141c84923e34e003bec92b7435ea79b02ee8':
More SharedPreferences commit() -> apply() changes.
fa8e271636b9e9b86f247cdb4c91d9ebe9675c27 03-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> More SharedPreferences commit() -> apply() changes.

Change-Id: Ibc844d72d463434722a349f5bbc02889a9feb0ee
referenceManager.java
aa904f48cf3e3a31cc43806fee0e17af607c7fae 02-Sep-2010 Andrew Stadler <stadler@android.com> Add startPreferenceFragment()

This allows sub-fragments to be started directly via API

Change-Id: I6c8b86a911c8731068459eb9cdd3d37970fc9d0e
referenceActivity.java
02f4f0eb4919453e8dbf40549d4ae9c05f05b8dd 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am 734d2707: am bb660d7e: Merge "Renaming SharedPreferences.startCommit to apply" into gingerbread

Merge commit '734d270769c609c7d3a1f2ec46e1d329d9682ab4'

* commit '734d270769c609c7d3a1f2ec46e1d329d9682ab4':
Renaming SharedPreferences$Editor.startCommit to apply
734d270769c609c7d3a1f2ec46e1d329d9682ab4 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am bb660d7e: Merge "Renaming SharedPreferences.startCommit to apply" into gingerbread

Merge commit 'bb660d7e1bed3a07a1804bd9641d9634bfaa4972' into gingerbread-plus-aosp

* commit 'bb660d7e1bed3a07a1804bd9641d9634bfaa4972':
Renaming SharedPreferences$Editor.startCommit to apply
66fce5068a8a3aeb28aaf713843891b286a75280 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Renaming SharedPreferences$Editor.startCommit to apply

Also removes the artifical restriction that only one apply() can be in
flight at once. That was old from when I thought it'd end up being
required, but wasn't.

Change-Id: I3540ea8be6e0760d6a51d218186f71655c2f3f55
reference.java
7f7ce40f90cf00dc046fb9520d77d29e96b474d6 28-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 28130bae to master

Change-Id: I13df8dc12092c3d2536e12216df9130d5914380a
28130baefb4fa6d1e0ff9c92337295ba74461cf7 27-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 6b50986a to gingerbread-plus-aosp

Change-Id: I7c5ec7ae717e75ad242e2c1ad4537052e4eea718
333b8cba996c8ebb8ca55ebfc5cc536bdd64af94 26-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> SharedPreferences$Editor.startCommit()

Adds a fire-and-forget save method (startCommit) to the
SharedPreferences.Editor, which is the way most people use it anyway.

This commit adds the implementation. The previous commit added the
interface and docs:

previous change: Idf9934b445da1fb72b79f0192218b47c0a7f5a34
git commit: edf32d01316bd3432c023f17747461b08ae36375

In addition, this change:

-- adds a generic "runPendingWorkFinishers" mechanism to
ActivityThread to wait on async operations that are still
in flight and use it for this.

-- ties runPendingWorkFinishers into Activity.onPause,
BroadcastReceiver, and Service.

-- makes sSharedPreferences keyed on name, not File, to avoid
unnnecessary allocations

-- documents and guarantees what thread
OnSharedPreferenceChangeListener callbacks run on

-- makes a few things in frameworks/base use startCommit(), notably
Preference.java (which was ignoring the return value anyway)

Change-Id: I1c8db60ad45643226fe6d246d3e513eeb7bd0ebd
reference.java
5c769a47aeb399324cca7f5d449331a3bba85b52 27-Aug-2010 Dianne Hackborn <hackbod@google.com> Some new preferences features.

- You can add arbitrary stuff at the bottom of the header list.
- You can associated an intent with a header to have that launched
when the header is clicked.
- You can change the current header when the header list is rebuilt
after the first time.

Change-Id: I889512beff0c2902a790434e5cde9ce6df74d0c2
referenceActivity.java
59f3a757b51f196912dbd9bacbd7e48436217a99 18-Aug-2010 Amith Yamasani <yamasani@google.com> Merge "Make getListView() public and hidden, as it is needed for WifiSettings."
291905e34a7f0ae03c68fb2c1b8c34b92d447fbf 18-Aug-2010 Dianne Hackborn <hackbod@google.com> Maybe fix #2925641: calling onCreateOptionsMenu before attached activity

Also add some APIs to PreferenceActivity.

Change-Id: I85894a3eb9cd3e5adb78b82e85454c0d74773178
referenceActivity.java
9ae5473eae5312575521d87ec0303ac91560cbed 18-Aug-2010 Amith Yamasani <yamasani@google.com> Make getListView() public and hidden, as it is needed for WifiSettings.
referenceFragment.java
468c3230dafc2d131bdeded7b5a6825988166244 18-Aug-2010 Andrew Stadler <stadler@android.com> Fix two bugs in PreferenceActivity headers

* Make Header fields public so activities can write them
* Recycle views properly
* Also made the HeaderAdapter and HeaderViewHolder static inner classes
for a little extra efficiency.

Change-Id: If0a9276e4609e2e8568c7c5a6963f3ed3e25565f
referenceActivity.java
def1537e9e8d0dd190cde5310ddae8b921088c9b 15-Aug-2010 Dianne Hackborn <hackbod@google.com> More fragment work:

- Introduce FragmentManager as a public API, deprecating the fragment
APIs on Activity. (They will be removed soon.)
- Add APIs to write a fragment reference to a bundle and later retrieve
it.
- Add Fragment API to set another fragment as its target, for delivering
results.
- Change when onInflate() is called and formalize its meaning in relation
to the fragment arguments that were previously introduced.
- Change onDestroyView() to always be called, regardless of when
onCreateView() returns. It now also is called slightly differently,
after the view hierarchy's state is saved.
- Fix some issues with DialogFragment's lifecycle with its associated
Dialog and state save/restore.
- Preference can now have a Bundle associated with it to provide
arguments to a fragment. The data for this Bundle call be supplied
via <extra> tags under a PreferenceScreen.
- PreferenceActivity's header XML tags are now <preference-headers>
and <header>, and you can supply <extra> tags under a <header> to set
arguments for the header's fragment.

Change-Id: I22c212c9fa862d50840201ca16e51f9de5ef0031
reference.java
referenceActivity.java
referenceInflater.java
52a50782d52d0ad2444d08550e4318421e6a15ab 13-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make the doc for PreferenceScreen aware of PreferenceFragment.

This class has existed from before, so the doc does not mention
PreferenceFragment but only PreferenceActivity, while actually
the class can be used via PreferenceFragment.

Change-Id: Ie3756f7ff260cff829eff31a6ba99260c681bc2d
referenceScreen.java
72dc780f57b4396b808032d592c41d35644a3277 13-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Fix build: tweak documentation links

Change-Id: I9c9c8615086b7173f4ad68b5183e7699275c7a2d
referenceActivity.java
b7a2e4772220c4b41df1260cedaf8912f4b07547 13-Aug-2010 Dianne Hackborn <hackbod@google.com> Fragment and PreferenceFragment and FragmentManager, oh my!

- Introduce FragmentManager public API, for all Fragment management
needs. Will in the future allow the removal of the (growing number
of) fragment APIs on Activity.

- Fragment now has a concept of arguments. This can be supplied
immediately after creation, and are retained across instances.

- PreferenceActivity now has an API to have it update its headers (note
not tested). Headers now have arguments. Keys for controlling
when PreferenceActivity shows at launch have been added to the SDK.

- Fixes to back stack handling and state saving/restoring.

Change-Id: Ib9d07ae2beb296c4eb3a4d9e1b3b59544675e819
referenceActivity.java
09dbf1844016682ed461d080e32a43d0086e767d 12-Aug-2010 Freeman Ng <tenorslowworm@google.com> add a Skip option

Change-Id: I21dca8feb1dedc362350c41e95a12463e6e4bc61
referenceActivity.java
b3cf10ffa8ff9cac0da8b23a0d84076b3f501400 03-Aug-2010 Dianne Hackborn <hackbod@google.com> Add facility to switch to new fragments from preferences.

Change-Id: I009315b59cf81b4962e9c5a4490f0f82743ed64a
reference.java
referenceActivity.java
referenceFragment.java
referenceScreen.java
b1ad5977bc8178b6d350ebe9099daded4c1ef603 03-Aug-2010 Dianne Hackborn <hackbod@google.com> New two-pane mode for PreferenceActivity.

This introduces a whole new way to use PreferenceActivity, as
a container for PreferenceFragments that the user can switch
between from a list of headers.

Change-Id: I1c79b7c78b86790dc460a1414a999aba5de80628
referenceActivity.java
referenceFragment.java
42c2936f3c6e048caafb17eb9fe91fa4a33c8b86 28-Jul-2010 Dianne Hackborn <hackbod@google.com> Add PreferenceFragment.

Change-Id: I9b87ec2c15822cca5b460a9a2d589fc24e21a789
referenceFragment.java
506e6e0882fe7c726138f10d558732bf9617c5db 16-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am 3a94ab02: merge from open-source master

Merge commit '3a94ab026f0434624f233e99b1a0aadb9152a09a'

* commit '3a94ab026f0434624f233e99b1a0aadb9152a09a':
Allow ListPreference summary to use entry
ba636df784398e4cd56f2982de63973ef6cd44fb 13-Jul-2010 Kenny Root <kroot@google.com> Allow ListPreference summary to use entry

Currently when ListPreferences are used in a PreferenceActivity, the summary
values are set to the same as the current index in mEntryValue. This patch
adds the ability for a string substitution to be used in the summary
which points to the corresponding entry in mEntries to aid in
localization.

For example a preference may be named "color" with the following attributes
in the locale "de" (German):

mEntryValues = { "red", "green", "blue" }
mEntries = { "rot", "grün", "blau" }
mSummary = "Die Farbe ist %1$s."

getSummary() returns "Die Farbe ist grün."

Change-Id: Iea169ac3d1c9d6290d853fc7c67a7c4c8a11bb90
istPreference.java
39ccc0811fad542fdce8e8226d90c219dec7e451 19-May-2010 The Android Open Source Project <initial-contribution@android.com> am 56d4bcd8: am 627356ce: am d6c0bb0f: merge from open-source master
d6c0bb0f0f3827f1c336db20ac9dc0eb90cd46fa 19-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I0598edad283a177a5ddcc30e20d2284503e6038e
746a95ab7145a1c7583d1f2d6004a508cd7a31dc 17-May-2010 Christian Mehlmauer <FireFart@gmail.com> Removed Calls to deprecated APIs

Change-Id: I3f9b6a8d3c8a050156a6cc7ea0eb9de33b82f79a
ialogPreference.java
76f0ce1fe4b10a67fb4c037a89024cc134ccb1c1 04-May-2010 Gilles Debunne <debunne@google.com> Revert "Merge "Raw types warnings removed.""

This reverts commit 9794ca60d745757d882d456e653a2dfe41cbb6ff, reversing
changes made to d3f9051c85ffdf50d800b914c8a2def73ffa5bf3.

Change-Id: I39cebc7e92d3604941d66b09bd7b899d06f703fb
enericInflater.java
referenceInflater.java
9afed28629e9a35d341a39f8b4ee21b418079263 21-Apr-2010 Gilles Debunne <debunne@google.com> Raw types warnings removed.

Raw types replaced. Added a asSubClass method in LayoutInflater which
will (correctly) throw a ClassCastException when the inflated class is
not a View subclass.

Reduced the number of warnings in GenericInflater, but those remaining
are valid. A lot of unsafe class casts happen between parent (P) and
item (T) types that will generate runtime errors if the XML is not valid.

Change-Id: I887fd67769a51ab54c6092e1270dbe3bfb6313ca
enericInflater.java
referenceInflater.java
212db7d3f8ce5297f4a556234a9c0675c697f1cf 09-Apr-2010 Adam Powell <adamp@google.com> Added MultiSelectListPreference

Added set support to XmlUtils; added Set<String> functions to SharedPreferences.

MultiSelectListPreference allows multiple selection and persistence of
string preferences. Addresses bug 2575634.

Change-Id: Icd56022d444b0ce43cccf819cd7d600fdb00e88a
ultiSelectListPreference.java
reference.java
19ea2e0d788810473136ceca46c1c28326daff5e 25-Mar-2010 Freeman Ng <tenorslowworm@google.com> Give all PreferenceActivity subclasses ability to be launched in wizard mode with Back/Next buttons

Change-Id: Ifc8c22c70e808629a9a889406f17a962615e2574
referenceActivity.java
e7fea45863afb10335cb7845aebcf2907d3c3e41 18-Mar-2010 Adam Powell <adamp@google.com> Fix bug 2520540

PreferenceActivity will now persist view hierarchy state properly.

Change-Id: I4e7fe036d0d0bced78e58e2a15808facf502e449
referenceActivity.java
d6cc0343c92ba8da7800f54859f3717cc86c0f37 25-Jan-2010 Owen Lin <owenlin@google.com> Revert I3fdda2588a7c612d7c9cfb4f25d9aedd1d609162 which open two functions
in preference manager.

Change-Id: I910ccd3794771da9ec1eb4809b3d1a2a6633f4b1
referenceManager.java
58bb107f2a7016ae5ff707c174f8d45229330498 21-Jan-2010 Amith Yamasani <yamasani@google.com> Workaround for a database update callback that claims that the data doesn't exist.

It's probably some intermediate state when updating the volumes that's causing
the row to be missing.
olumePreference.java
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
ditTextPreference.java
a98129b9110371aa036d8fcf23fff709595b16ff 06-Oct-2009 Amith Yamasani <yamasani@google.com> Fix preference caching to increase recycling of preference views.

Add extra safety measures - no recycling of derived preferences as
they may override onCreateView or getView
reference.java
referenceGroupAdapter.java
bae6fc244732476d6e6b565e64518e1beafd66c6 30-Sep-2009 Amith Yamasani <yamasani@google.com> Fix for 2155255: Revert "Cache inflated view to avoid inflation of layouts in preferences"

This introduces problems when scrolling through preference screens, due
to a clash in this cache versus the ListView's cache.

This reverts commit 01dbc2ed55a081d41d233e891ea1ea1b0484f383.
reference.java
01dbc2ed55a081d41d233e891ea1ea1b0484f383 28-Sep-2009 Suchi Amalapurapu <asuchitra@google.com> Cache inflated view to avoid inflation of layouts in preferences
If layout id is specified for a Preference object, convertView is set to null
in its adapter which results in inflation of Preference view in getView each time the Preference object is laid out on the screen.
Just use an instance variable to cache the inflated view nulling it whenever the layout changes and use it in initing the convertView in getView.
reference.java
e43530ab571e901f94361078c7c1f970a0bd27f2 21-Aug-2009 Amith Yamasani <yamasani@google.com> Track CPU speed stepping to get more accurate CPU cost per app.

More CPU speed stepping happening with newer devices, so we need
to qualify CPU time with the CPU speed, since power consumption
varies greatly by speed. Apps that peg the CPU should get a higher
penaltly.

Also, fix for 2062930: NPE at VolumePreference.onKey()
olumePreference.java
1d458570757e607f0dc11fb0e963017916ac0701 15-Sep-2009 Amith Yamasani <yamasani@google.com> Show keyboard automatically in EditTextPreference dialogs
ialogPreference.java
ditTextPreference.java
0bb9960598067f3320cdae8ab42c1ba0f3376f21 08-Sep-2009 Tammo Spalink <tammo@google.com> Do not die when printing empty prefs.

Addresses issue:
http://buganizer/issue?id=1974140

Change-Id: I0001d69e8d278d4ca900f5ce56ad50c0b4b6b694
reference.java
f9b702e212e7115a50161810c73014ce691f1186 27-Aug-2009 Owen Lin <owenlin@google.com> Open some methods on PrefereneManager to allow others use the inflater.

Change-Id: I3fdda2588a7c612d7c9cfb4f25d9aedd1d609162
referenceManager.java
6ff5906981fac2aa67c8c1f0df151b536e80ccaf 26-Aug-2009 Amith Yamasani <yamasani@google.com> Fix rare NPE due to key being delivered after activity is stopped. #2062930
olumePreference.java
9b4742cf25c2cd7e10d87554c1e8a60c6702edaa 25-Aug-2009 Amith Yamasani <yamasani@google.com> Revert volume if it wasn't okayed by user.

During orientation changes or homing, the volume is reverted. Also,
during pause/resume, the original and modified values are remembered and
restored if the dialog was up.
olumePreference.java
e0616ffb741b64e3bc7a1e3ad9def3d50eee53fd 19-Aug-2009 Fred Quintana <fredq@google.com> add a supportsUploading flag in the SyncAdapter description and honor it in the SyncManager
heckBoxPreference.java
69f593ccb7414ee98991b1da1a4bfbd9951e3570 28-Jul-2009 Marco Nelissen <marcone@google.com> Support for selection of silent ringtone from the ringtone picker.
This doesn't actually enable that, but adds the necessary code to make it work when enabled, and cleans up some ringtone related code.
olumePreference.java
08bc0d51a0088405c89c28252fa8e9e790a52233 30-Jun-2009 Amith Yamasani <yamasani@google.com> am a013a98f: Fix the nested preferences title. Again.

Merge commit 'a013a98f93fd5ced58cf76dcc2bd6ab2ca95dd92'

* commit 'a013a98f93fd5ced58cf76dcc2bd6ab2ca95dd92':
Fix the nested preferences title. Again.
a013a98f93fd5ced58cf76dcc2bd6ab2ca95dd92 27-Jun-2009 Amith Yamasani <yamasani@google.com> Fix the nested preferences title. Again.

Made a mistake when refactoring just before checkin. ! ?
referenceScreen.java
3fa058a5a97096632e14024aeca5e36d3dd95f02 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 36c153f8: Merge change 4535 into donut

Merge commit '36c153f84f2728ffc67b7f30a1f326a7731c2088'

* commit '36c153f84f2728ffc67b7f30a1f326a7731c2088':
Add title to nested preference screens.
ca74c90cf5c15f648abca77e12a91e1ce2b435e4 18-Jun-2009 Amith Yamasani <yamasani@google.com> Add title to nested preference screens.

Fixes #1894381
referenceScreen.java
76879bc2343779d4d2a870b7bd46b0544c0cc46c 15-May-2009 svetoslavganov <svetoslavganov@google.com> resolved conflicts w/ 75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec merge....
75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec 15-May-2009 svetoslavganov <svetoslavganov@google.com> Accessibility feature - framework changes (replacing 698, 699, 700, 701 and merging with the latest Donut)
heckBoxPreference.java
3156bb00dd3ab3d6ec732bb6a64a2e84d08c34f0 13-Apr-2009 Patrick Scott <> AI 145870: Add a build property for the default alarm alert. Update the various
framework classes to deal with the new property. Also update various
documentation that mentions the default ringtones.
Use the build property as the default alert when the user has not chosen
an alert for an alarm. This is also used if the alarm alert is null when
the alarm fires.
BUG=1723684

Automated import of CL 145870
ingtonePreference.java
olumePreference.java
da53eca79e02ac70761c379f9f2cb3babce9e79d 28-Mar-2009 Michael Chan <> AI 143298: am: CL 143150 Fixed the problem where setEnabled(false) has no effect from onResume().
The problem was that the Preference widget was reenabled when its dependency
was in enabled state. The enabled field was basically overloaded. The fix was
to add an additional field to keep track of whether its dependencies were met.
Original author: chanm
Merged from: //branches/donutburger/...

Automated import of CL 143298
reference.java
e1e1cbfc41c5c980b8d3f537afa1b9508625a10f 27-Mar-2009 Michael Chan <> AI 143150: Fixed the problem where setEnabled(false) has no effect from onResume().
The problem was that the Preference widget was reenabled when its dependency
was in enabled state. The enabled field was basically overloaded. The fix was
to add an additional field to keep track of whether its dependencies were met.
BUG=1653960

Automated import of CL 143150
reference.java
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
olumePreference.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
heckBoxPreference.java
ialogPreference.java
ditTextPreference.java
enericInflater.java
istPreference.java
nDependencyChangeListener.java
reference.java
referenceActivity.java
referenceCategory.java
referenceGroup.java
referenceGroupAdapter.java
referenceInflater.java
referenceManager.java
referenceScreen.java
ingtonePreference.java
eekBarPreference.java
olumePreference.java
ackage.html
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
heckBoxPreference.java
ialogPreference.java
ditTextPreference.java
enericInflater.java
istPreference.java
nDependencyChangeListener.java
reference.java
referenceActivity.java
referenceCategory.java
referenceGroup.java
referenceGroupAdapter.java
referenceInflater.java
referenceManager.java
referenceScreen.java
ingtonePreference.java
eekBarPreference.java
olumePreference.java
ackage.html
15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
reference.java
referenceScreen.java
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
referenceGroupAdapter.java
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
referenceGroupAdapter.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
referenceActivity.java
referenceGroup.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
referenceGroupAdapter.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
heckBoxPreference.java
ialogPreference.java
ditTextPreference.java
istPreference.java
reference.java
referenceActivity.java
referenceCategory.java
referenceGroup.java
referenceManager.java
referenceScreen.java
ingtonePreference.java
olumePreference.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
heckBoxPreference.java
ialogPreference.java
ditTextPreference.java
enericInflater.java
istPreference.java
nDependencyChangeListener.java
reference.java
referenceActivity.java
referenceCategory.java
referenceGroup.java
referenceGroupAdapter.java
referenceInflater.java
referenceManager.java
referenceScreen.java
ingtonePreference.java
eekBarPreference.java
olumePreference.java
ackage.html