5506618c80a292ac275d8b0c1046b446c7f58836 |
|
05-Jun-2012 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #6584942 IllegalStateException: Failure saving state... ...active SuggestFragment{419494f0} has cleared index: -1 There were issues when the same fragment was removed and then added again before completely finishing the remove (such as due to a running animation). Two fixes: - Now when you call FragmentTransaction.replace() and are replacing a fragment with the same fragment, this becomes a no-op, to avoid visual artifacts in the transition and bad states. - When we are moving the fragment state up and it is currently animating away to the INITIALIZED state, we could end up making the fragment inactive as part of the cleanup. In this case it shouldn't be made inactive; we just need to initialize it but keep it active since we are going to continue to use it. Bug: 6584942 Change-Id: I4c37a8e48b115feb0892ef0eb92316d7aeba7b1b
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
be2c79d9a5439922030d2a3846c81c61f0e16912 |
|
16-May-2012 |
Dianne Hackborn <hackbod@google.com> |
Follow changes in framework. Change-Id: I424a6e8f4b8b50d421c56bb018beab1063ba2cef
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
0574ca37da4619afe4e26753f5a1b4de314b6565 |
|
17-Nov-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Add the support libraries to the platform documentation (support libs). Updated the support libraries' documentation. bug:5629339 Change-Id: Ia026696e541ab200ce05601aabe062a303bcbb97
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
79398eaefea45e61d839cf4e0534f0eafee70a09 |
|
07-Nov-2011 |
Adam Powell <adamp@google.com> |
Change the "start deferred" fragment API to "user visible hint" - Support lib edition Allow a fragment to set a hint of whether or not it is currently user visible. This will be used implicitly to defer the start of fragments that are not user visible until the loaders for visible fragments have run. This hint defaults to true. Modify FragmentPagerAdapter to use the new APIs both in frameworks/base and here. Change-Id: Idb5bce8a9ddf484186942555cd3c581d833eba7c
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
abc968f1eba800c34a4008deb43b015da5d23a5f |
|
26-Oct-2011 |
Adam Powell <adamp@google.com> |
Defer starting fragments in FragmentPagerAdapter for offscreen pages. Add FragmentCompatICSMR1 to work with deferring fragment starts. Fix some slightly dodgy layout behavior in ViewPager when extra child views are present. Add deferred start feature to support library fragment/loader framework. Change-Id: Ied454a6f3e11024eafc970ed9d091788c2d80bab
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
218c1e661578e2a17928f7dbb590b43d1c79aeb7 |
|
02-Sep-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #5238823, #5100340 and #5249654. 5238823: java.lang.NullPointerException at... ...android.support.v4.view.ViewPager.pageRight(ViewPager.java:1335) 5100340 Leaking reallyStopped in FragmentActivity 5249654 ViewPager resets focus on layout when descendant of... ...fragment.getView() is focusable (FragmentPagerAdapter bug) Also there was a bug in the "really stopped" thing that was previously introduced -- fragments wouldn't stop their loaders until hitting that state, but they wouldn't go into that state if the fragment was deactivated or put on the back stack without the containing activity really stopping. To fix this, we now implement the really stop facility as an actual state, using the ACTIVITY_CREATED state, so that we can know when to do the really stop for both cases. Change-Id: Ia9bd55f41ad30c3ce07f99b6ac6d9113b15fe46d
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
2a4d8518f36346ea25a22a736453ff28f2954165 |
|
30-Aug-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix issues 5158104 and 4981556 (fragment problems) 5158104: com.android.contacts: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1201) The ViewPager can just commit without worrying about a state loss, since it can correctly reconstruct its state later. 4981556: Fragment.mImmediateActivity doesn't get restored on orientation change I am giving up on this thing; I just don't see how it can actually be correct. So now instead of getting an exception about a dup add/remove at point of the add/remove call, this will happen later when processing the transaction. Also add an API for controlling the visibility of menus, which ViewPager uses to have the correct menus shows. And add a method to get the name of a back stack entry. Finally fix a recent problem in ViewPager with dealing with focus, and make ViewPager smart about handling keyboard focus navigation inside itself. Change-Id: I280269ac64079d171e9c899ea1cff7e80246c924
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
2c4b5dbfee5232bcbbcb74b84ce9147b62a9d789 |
|
15-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
Merge in fixes from main platform. Change-Id: I8e63b6990022869aa033d4672018d6585355bf76
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
9c53b844bd525e6a04e17291efc38713893074cd |
|
13-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
Update to follow fixes from platform. Change-Id: I9918b084426c62a60581e3ac6e69a48e51b7cc9b
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
5c1637087453de15e31861f073eae5133c4e9f7b |
|
06-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
Move PagerView down to the v4 support lib. Adds in standard adapters for using PagerView with the fragment support library. Also bring in the most recent HC fragment API and impl changes so that the support lib matches it. Change-Id: Id8a590378b8c544a92df4f3c11af323c930aa5fd
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
e4417c91a0bb2fba42a0aaa99edcca1b238af21a |
|
05-Apr-2011 |
Dianne Hackborn <hackbod@google.com> |
DO NOT MERGE. Integrate support work from master. First submit of FragmentPager class. This provides an easy way to build a UI where the user can swipe left or right through its elements. The elements are implemented as fragments, and the class takes care of managing those fragments as the user navigates through it. This implementation also introduces a new FragmentManager concept of a "detached" fragment -- basically a way for you to put a fragment in the same state as when it is on the back stack, where the framework is managing its current state but it is no longer actively running. Also required the introduction of new compatibility code for MotionEvent and VelocityTracker for accessing multi-touch data. Tweak view save/restore state so it will play well with list views. We need to restore the state *after* the adapter has been set; setting the adapter clears the state. To do this, we move the state restore from immediately after the view is created to after we call Fragment.onActivityAttached(). Also introduced a new Fragment.onViewCreated() callback which is nice for fragments that want to do some setup after onCreateView() but allow for subclasses to override that method. (ListFragment I'm looking at you.)
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
9277b9e4419c1f0b5236d9b573a7cc0b23d56402 |
|
09-Mar-2011 |
Dianne Hackborn <hackbod@google.com> |
Implement fragment animations. I forgot to finish the implementation of this in the support library. Currently the standard animations are very hard-coded to look the same as HC. Also bring over my MR1 fix to onInflate(). Change-Id: Ib584e158bb691986d912aea5fd3004b8b2da7a6a
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
681a6fb06bdedb8661a68a1b9e34727b6059aa39 |
|
14-Feb-2011 |
Dianne Hackborn <hackbod@google.com> |
Finish remaining key implementation. Change-Id: Idb10f45bc109e57966dd2abdf446e60c5fd32aec
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|
cba2e2c881e8e16ea5025b564c94320174d65f01 |
|
08-Feb-2011 |
Dianne Hackborn <hackbod@google.com> |
First checkin! Change-Id: Ib09737c48a144dd778efe4750452d74ac8265a29
/frameworks/support/v4/java/android/support/v4/app/Fragment.java
|