History log of /frameworks/base/core/java/android/preference/Preference.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
10bb1371dca38b5b59f083ee963f7987da6511f2 05-Oct-2014 Deepanshu Gupta <deepanshu@google.com> Add preferences rendering.

NO_SQ: Depends on updating layoutlib-api-prebuilt.jar
Change-Id: Iae93ab74c478e6f2158e1528467bec9ee2d7ee9b
/frameworks/base/core/java/android/preference/Preference.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
/frameworks/base/core/java/android/preference/Preference.java
8eea3ea5591e59f55cbb4f6b2b7e9363a285ced3 04-Feb-2014 Alan Viverette <alanv@google.com> Add APIs for obtaining themed Drawable from Theme, Context

BUG: 12611005
Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
/frameworks/base/core/java/android/preference/Preference.java
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.
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
/frameworks/base/core/java/android/preference/Preference.java
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
/frameworks/base/core/java/android/preference/Preference.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
/frameworks/base/core/java/android/preference/Preference.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
/frameworks/base/core/java/android/preference/Preference.java
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
/frameworks/base/core/java/android/preference/Preference.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
/frameworks/base/core/java/android/preference/Preference.java
cdd0c59a0108036895796dcb2bea69ff5eef26ca 27-Jul-2012 Scott Main <smain@google.com> docs: add links to new Settings dev guide

Change-Id: I04444ec0c4c1c278569b64f15cbbc7e8c1c623cd
/frameworks/base/core/java/android/preference/Preference.java
0f1c3af76b719a728ed567435ea4db30a33364d2 04-Apr-2012 Jeff Sharkey <jsharkey@android.com> Hide Preference title when empty.

Change-Id: I1c1d73f5a4647657c7da65c72192fbac061fe259
/frameworks/base/core/java/android/preference/Preference.java
014fea2a663ab0bc2d80a6293b84b2647a4a1895 16-Jun-2011 John Reck <jreck@google.com> Inline SeekBarPreference

Dialog-based SeekBarPreference renamed to SeekBarDialogPreference
New inline SeekBarPreference added

Change-Id: I7a5d8f7aa554c4af4086a9bcc74cf07879c8523c
/frameworks/base/core/java/android/preference/Preference.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
/frameworks/base/core/java/android/preference/Preference.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
/frameworks/base/core/java/android/preference/Preference.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
/frameworks/base/core/java/android/preference/Preference.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.
/frameworks/base/core/java/android/preference/Preference.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.
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
/frameworks/base/core/java/android/preference/Preference.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
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
/frameworks/base/core/java/android/preference/Preference.java
7f7ce40f90cf00dc046fb9520d77d29e96b474d6 28-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 28130bae to master

Change-Id: I13df8dc12092c3d2536e12216df9130d5914380a
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
/frameworks/base/core/java/android/preference/Preference.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
/frameworks/base/core/java/android/preference/Preference.java
b3cf10ffa8ff9cac0da8b23a0d84076b3f501400 03-Aug-2010 Dianne Hackborn <hackbod@google.com> Add facility to switch to new fragments from preferences.

Change-Id: I009315b59cf81b4962e9c5a4490f0f82743ed64a
/frameworks/base/core/java/android/preference/Preference.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
/frameworks/base/core/java/android/preference/Preference.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
/frameworks/base/core/java/android/preference/Preference.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.
/frameworks/base/core/java/android/preference/Preference.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.
/frameworks/base/core/java/android/preference/Preference.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
/frameworks/base/core/java/android/preference/Preference.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
/frameworks/base/core/java/android/preference/Preference.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/preference/Preference.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/preference/Preference.java
15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
/frameworks/base/core/java/android/preference/Preference.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/preference/Preference.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/preference/Preference.java