• 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 >>>)
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