summaryrefslogtreecommitdiff
path: root/core/java/android/preference/PreferenceGroup.java
Commit message (Collapse)AuthorAgeFilesLines
* Deprecates framework Preference classesLouis Pullen-Freilich2018-11-191-3/+11
| | | | | | | | | The AndroidX Preference Library is the recommended way to build settings screens moving forward. Bug: b/114357488 Test: n/a Change-Id: I3b3bff2daf43d8239d8bf247a9c2acebbc6374eb
* Add getParent() on Preference.Filip Pavlis2017-01-121-21/+25
| | | | | | | | | | | 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
* Merge "Revert "Add Preference#onDetachedFromActivity""Jason Monk2016-04-051-15/+5
|\
| * Revert "Add Preference#onDetachedFromActivity"Jason Monk2016-04-041-15/+5
| | | | | | | | | | | | | | This reverts commit e18dc50c63110a57cfc29ec9bd21bf3f59abb6b4. Fixes: 27807793 Change-Id: Ib0384e3deb8d6376265e8e60f14490de128c9b68
* | am b46886f4: am f518ad0a: Merge "IndexOutOfBoundsException on addPreference ↵Alan Viverette2015-10-071-5/+4
|\ \ | |/ |/| | | | | | | | | in PreferenceGroup" * commit 'b46886f41d142cc63e054814caf76d15bf2f8cb6': IndexOutOfBoundsException on addPreference in PreferenceGroup
| * Merge "IndexOutOfBoundsException on addPreference in PreferenceGroup"Alan Viverette2015-10-071-5/+4
| |\
| | * IndexOutOfBoundsException on addPreference in PreferenceGroupDaniel 2 Olofsson2014-12-081-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Add Preference#onDetachedFromActivityJason Monk2015-08-121-5/+15
|/ / | | | | | | Change-Id: I7c78f96d41b33b902e54fe1c0b7246d555aab0ed
* / Remove unused imports in frameworks/base.John Spurlock2015-02-281-3/+0
|/ | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* Add View constructor that supplies a default style resourceAlan Viverette2013-09-091-5/+9
| | | | | | | Also updates the constructor of every class that extends View. BUG: 10676369 Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
* Apply implicit parent dependency when adding to PreferenceGroupAlan Viverette2013-09-051-4/+1
| | | | | BUG: 10493706 Change-Id: Iba741d8dd4e72bc5aef5c033e42a9ba4fb0c523b
* Add implicit parent dependency for PreferencesAlan Viverette2013-08-191-5/+6
| | | | | | | Also removes unused dependency change listener interface. BUG: 10117838 Change-Id: I03f0eb37e7ba69942f7997a8b32adb38a3dee0bd
* docs: add links to new Settings dev guideScott Main2012-07-261-0/+7
| | | | Change-Id: I04444ec0c4c1c278569b64f15cbbc7e8c1c623cd
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+324
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-324/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-0/+4
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-2/+2
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+320