summaryrefslogtreecommitdiff
path: root/core/java/android/preference/PreferenceGroupAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I534e3fd1305e2f4af076986770033478448a665c
* Add @UnsupportedAppUsage annotationsAndrei Onea2019-03-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For packages: android.companion android.filterfw android.hardware.camera2.utils android.inputmethodservice android.net.nsd android.os android.preference android.security.keymaster android.service.dreams android.telecom android.telephony.ims.compat.feature android.telephony android.util android.view.accessibility android.media.effect This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I9c2f8347952f3cc65759472b0e1a2717b285e44e
* Deprecates framework Preference classesLouis Pullen-Freilich2018-11-191-4/+11
| | | | | | | | | The AndroidX Preference Library is the recommended way to build settings screens moving forward. Bug: b/114357488 Test: n/a Change-Id: I3b3bff2daf43d8239d8bf247a9c2acebbc6374eb
* Enable recycling of third party preference widgetsFilip Pavlis2017-03-101-2/+2
| | | | | | | | | | | | | | | | 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
* Fix PreferenceGroupAdapter highlight code pathFabrice Di Meglio2014-06-231-4/+20
| | | | | | | | | | | | - 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
* Improve Preference highlightingFabrice Di Meglio2014-04-171-1/+1
| | | | | | | | | - 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
* Add Preference highlightingFabrice Di Meglio2014-04-161-4/+19
| | | | | | | | - use a specific drawable for highlighting a Preference at a given position - also add PreferenceFragment.hasListView() as hidden API Change-Id: If69854cf6c4852d0f45e2c3a9734b1f63b352f9d
* Add support for saving and using the Preference's key valueFabrice Di Meglio2014-04-081-3/+13
| | | | | | | | | - 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
* Allow recycling of Preferences in com.android.* packagesAlan Viverette2013-08-201-2/+2
| | | | | | | | Refactors hasSpecifiedLayout to canRecycleLayout for readability's sake. All boolean references to the method have been inverted. BUG: 10079104 Change-Id: Ie6beda9f0b837f889a6cc6a80377349e98cc4883
* Fix preference caching to increase recycling of preference views.Amith Yamasani2009-10-051-24/+59
| | | | | Add extra safety measures - no recycling of derived preferences as they may override onCreateView or getView
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+248
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-248/+0
|
* auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-191-1/+1
|
* auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-131-0/+3
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-3/+2
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+246