History log of /frameworks/base/core/java/android/preference/PreferenceActivity.java
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
/frameworks/base/core/java/android/preference/PreferenceActivity.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/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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/PreferenceActivity.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/PreferenceActivity.java
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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.java
48e7b458694acdf3a4fc58e62437f1dbc4f29d83 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Start renaming FragmentTransaction.openTransaction() to beginTransaction().

Change-Id: Ib4a6d824b33cca699b7b25159c491fb610d5f5da
/frameworks/base/core/java/android/preference/PreferenceActivity.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.
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.java
3c9f519f898f8fc809550199ea823c0225c682a8 09-Dec-2010 Amith Yamasani <yamasani@google.com> Move the breadcrumbs to the right pane.

Bug: 3236568
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.java
50ed8294d366412aa739e763f5e53f1e9717c7c6 03-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3201066: Locale change not reflected by settings

Change-Id: I356c7ec021df7a20f52017e0630d341230ea349f
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.java
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
/frameworks/base/core/java/android/preference/PreferenceActivity.java
8da35290693d404b482104abc5f696f6cfd58a2c 05-Nov-2010 Amith Yamasani <yamasani@google.com> Added assets for preference panel and adjusted layout margins for new spec.
/frameworks/base/core/java/android/preference/PreferenceActivity.java
83681eb6003d69f095547d10bdd96822e30432c2 04-Nov-2010 Andrew Stadler <stadler@android.com> Avoid NPE when reloading headers in single-pane mode

Change-Id: I696102b371566872ab1e6dca7281015da534b83f
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.java
f5cbaeda148aa80470d4100d51e3fb3975843ef2 28-Oct-2010 Amith Yamasani <yamasani@google.com> No animation when tapping on current header in a preference screen.

Bug: 3125427
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.java
05fbc31ed9c6ac13a7aeddc176f19a5c17217e30 26-Sep-2010 Amith Yamasani <yamasani@google.com> Make the headers pane disappear in no-headers mode, not just the ListView.
/frameworks/base/core/java/android/preference/PreferenceActivity.java
ed13cde1de86933f64285fa34e3a3aca80994859 18-Sep-2010 Amith Yamasani <yamasani@google.com> Fix attribute parsing of PreferenceHeader_id
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.java
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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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/PreferenceActivity.java
72dc780f57b4396b808032d592c41d35644a3277 13-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Fix build: tweak documentation links

Change-Id: I9c9c8615086b7173f4ad68b5183e7699275c7a2d
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.java
09dbf1844016682ed461d080e32a43d0086e767d 12-Aug-2010 Freeman Ng <tenorslowworm@google.com> add a Skip option

Change-Id: I21dca8feb1dedc362350c41e95a12463e6e4bc61
/frameworks/base/core/java/android/preference/PreferenceActivity.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/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.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
/frameworks/base/core/java/android/preference/PreferenceActivity.java
e7fea45863afb10335cb7845aebcf2907d3c3e41 18-Mar-2010 Adam Powell <adamp@google.com> Fix bug 2520540

PreferenceActivity will now persist view hierarchy state properly.

Change-Id: I4e7fe036d0d0bced78e58e2a15808facf502e449
/frameworks/base/core/java/android/preference/PreferenceActivity.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/PreferenceActivity.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/PreferenceActivity.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/preference/PreferenceActivity.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/PreferenceActivity.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/preference/PreferenceActivity.java