summaryrefslogtreecommitdiffstats
path: root/core/java/android/preference
Commit message (Collapse)AuthorAgeFilesLines
* Add a way to insert a parent bread crumb so that deep linked settings can ↵Amith Yamasani2010-12-141-0/+15
| | | | | | | | | 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.
* Potential fix for Settings screen ClassCast exception on the phone.Amith Yamasani2010-12-101-0/+3
| | | | | Bug: 3273396 Change-Id: I92477dc8d5e864027923c52545069710dff3575a
* Remove the OnItemClick listener when the fragment is destroyed.Amith Yamasani2010-12-091-0/+1
| | | | | | Bug: 3228510 This probably fixes a lot of other monkey bugs in Settings.
* Move the breadcrumbs to the right pane.Amith Yamasani2010-12-082-13/+14
| | | | Bug: 3236568
* Fix 3148496: Update PreferenceActivity to handle single-pane fragments.Jim Miller2010-12-082-2/+9
| | | | | | This fixes a couple of bugs I found while updating SecuritySettings. Change-Id: I9881cff71799ddf3c1d1493c2f7f3bfb31ca7774
* Fix issues #3257701 and #3267312Dianne Hackborn2010-12-081-1/+1
| | | | | | | | 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
* Fix bug 3245210 - Bad window style for action modes for light holo dialog themeAdam Powell2010-12-051-2/+1
| | | | | | Also fixed some issues with the overlay action mode window styles. Change-Id: Ie4cf43f6ccf720ef0090ca8bd667fb6d78152f93
* Fix issue #3201066: Locale change not reflected by settingsDianne Hackborn2010-12-031-12/+124
| | | | Change-Id: I356c7ec021df7a20f52017e0630d341230ea349f
* Preference changes to layouts.Mindy Pereira2010-11-301-27/+86
| | | | | | | | | | 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.
* Use getDimensionPixel size instead of casting to an int.Mindy Pereira2010-11-241-4/+10
| | | | Change-Id: I907c8be25bd4cf0fefc2bb4e0282db2d136da099
* Create logic for applying padding only to custom preference layoutsMindy Pereira2010-11-231-0/+84
| | | | | | | | | | | 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
* Adjust preference activity margins and move the widget back to the right side.Amith Yamasani2010-11-171-1/+58
| | | | | | 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.
* Fix issue #3191573: PreferenceFragment.onActivityResult cannotDianne Hackborn2010-11-161-4/+7
| | | | | | | | | | | 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
* am f8d2aff4: am db65907a: Merge "Adding pan behavior on preference dialog."Amith Yamasani2010-11-111-1/+1
|\ | | | | | | | | * commit 'f8d2aff41d347e029c9c0b1f51f20c92cd1cce8e': Adding pan behavior on preference dialog.
| * am db65907a: Merge "Adding pan behavior on preference dialog."Amith Yamasani2010-11-111-1/+1
| |\ | | | | | | | | | | | | * commit 'db65907a2148f053e51f941979f0f7694acd5923': Adding pan behavior on preference dialog.
| | * Adding pan behavior on preference dialog.Peter Eliasson2010-10-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Fixe some stuff.Dianne Hackborn2010-11-081-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Added assets for preference panel and adjusted layout margins for new spec.Amith Yamasani2010-11-071-0/+3
| | |
* | | Avoid NPE when reloading headers in single-pane modeAndrew Stadler2010-11-041-1/+3
| | | | | | | | | | | | Change-Id: I696102b371566872ab1e6dca7281015da534b83f
* | | Add plumbing for volume mute key.Jeff Brown2010-11-021-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | Full support for the volume mute key will be implemented in a later change. Bug: 2912307 Change-Id: I98c27d6360f159c8b7447e04b45f442eff87b38a
* | | Various PreferenceActivity and related improvement.Dianne Hackborn2010-11-011-23/+83
| | | | | | | | | | | | | | | | | | | | | | | | This is all about making the preferences implementation better. Well, mostly all about that. Change-Id: I8efa98cb5680f3ccfa3ed694a1586de3fb3a9e11
* | | No animation when tapping on current header in a preference screen.Amith Yamasani2010-10-271-7/+7
| | | | | | | | | | | | Bug: 3125427
* | | Fix sub-header height to follow drawable. Floating panels for Preference ↵Amith Yamasani2010-10-271-1/+1
| | | | | | | | | | | | screens.
* | | am ca1db5ae: am dd644c17: Fallback to SharedPreferences.commit() when no ↵Brad Fitzpatrick2010-10-112-6/+28
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | apply() exists. Merge commit 'ca1db5ae68971779fd8af83c908128849f470ae0' * commit 'ca1db5ae68971779fd8af83c908128849f470ae0': Fallback to SharedPreferences$Editor.commit() when no apply() exists.
| * | am dd644c17: Fallback to SharedPreferences.commit() when no apply() exists.Brad Fitzpatrick2010-10-102-6/+28
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'dd644c179c1bf47d82d776d7f644e4fc1467159d' into gingerbread-plus-aosp * commit 'dd644c179c1bf47d82d776d7f644e4fc1467159d': Fallback to SharedPreferences$Editor.commit() when no apply() exists.
| | * | Fallback to SharedPreferences$Editor.commit() when no apply() exists.Brad Fitzpatrick2010-10-102-6/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Adding next/prev to fragment animations and to PreferenceActivityChet Haase2010-10-051-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Make the headers pane disappear in no-headers mode, not just the ListView.Amith Yamasani2010-09-261-1/+1
| | | |
* | | | Fix for Ringtones not being saved when using Preference fragments.Amith Yamasani2010-09-233-8/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Fix attribute parsing of PreferenceHeader_idAmith Yamasani2010-09-171-1/+1
| | | |
* | | | Add API for showing breadcrumbs of fragment back stack.Dianne Hackborn2010-09-161-14/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Add a new "activated" state to View.Dianne Hackborn2010-09-151-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Fix issue #2967969: Crash rotating screen on "delete account" dialogDianne Hackborn2010-09-131-50/+238
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | | Some fragment stuff:Dianne Hackborn2010-09-122-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | am 9eb32c96: am a2f2141c: Merge "More SharedPreferences commit() -> apply() ↵Brad Fitzpatrick2010-09-031-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes." into gingerbread Merge commit '9eb32c96c872512c8aedc8627a4b96e9ea2a1a28' * commit '9eb32c96c872512c8aedc8627a4b96e9ea2a1a28': More SharedPreferences commit() -> apply() changes.
| * | | am a2f2141c: Merge "More SharedPreferences commit() -> apply() changes." ↵Brad Fitzpatrick2010-09-031-2/+2
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | into gingerbread Merge commit 'a2f2141c84923e34e003bec92b7435ea79b02ee8' into gingerbread-plus-aosp * commit 'a2f2141c84923e34e003bec92b7435ea79b02ee8': More SharedPreferences commit() -> apply() changes.
| | * | More SharedPreferences commit() -> apply() changes.Brad Fitzpatrick2010-09-031-2/+2
| | | | | | | | | | | | | | | | Change-Id: Ibc844d72d463434722a349f5bbc02889a9feb0ee
* | | | Add startPreferenceFragment()Andrew Stadler2010-09-021-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | This allows sub-fragments to be started directly via API Change-Id: I6c8b86a911c8731068459eb9cdd3d37970fc9d0e
* | | | am 734d2707: am bb660d7e: Merge "Renaming SharedPreferences.startCommit to ↵Brad Fitzpatrick2010-08-301-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | apply" into gingerbread Merge commit '734d270769c609c7d3a1f2ec46e1d329d9682ab4' * commit '734d270769c609c7d3a1f2ec46e1d329d9682ab4': Renaming SharedPreferences$Editor.startCommit to apply
| * | | am bb660d7e: Merge "Renaming SharedPreferences.startCommit to apply" into ↵Brad Fitzpatrick2010-08-301-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit 'bb660d7e1bed3a07a1804bd9641d9634bfaa4972' into gingerbread-plus-aosp * commit 'bb660d7e1bed3a07a1804bd9641d9634bfaa4972': Renaming SharedPreferences$Editor.startCommit to apply
| | * | Renaming SharedPreferences$Editor.startCommit to applyBrad Fitzpatrick2010-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | resolved conflicts for merge of 28130bae to masterBrad Fitzpatrick2010-08-271-1/+1
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: I13df8dc12092c3d2536e12216df9130d5914380a
| * | | resolved conflicts for merge of 6b50986a to gingerbread-plus-aospBrad Fitzpatrick2010-08-271-1/+1
| |\ \ \ | | |/ / | | | / | | |/ | |/| Change-Id: I7c5ec7ae717e75ad242e2c1ad4537052e4eea718
| | * SharedPreferences$Editor.startCommit()Brad Fitzpatrick2010-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Some new preferences features.Dianne Hackborn2010-08-261-6/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | Merge "Make getListView() public and hidden, as it is needed for WifiSettings."Amith Yamasani2010-08-181-1/+2
|\ \ \
| * | | Make getListView() public and hidden, as it is needed for WifiSettings.Amith Yamasani2010-08-171-1/+2
| | | |
* | | | Maybe fix #2925641: calling onCreateOptionsMenu before attached activityDianne Hackborn2010-08-171-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | Also add some APIs to PreferenceActivity. Change-Id: I85894a3eb9cd3e5adb78b82e85454c0d74773178
* | | | Fix two bugs in PreferenceActivity headersAndrew Stadler2010-08-171-23/+31
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | More fragment work:Dianne Hackborn2010-08-153-12/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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