History log of /frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ff3deb363de36fc9bab1ec6eb4f0f48e4c3556f4 04-May-2017 George Mount <mount@google.com> Remove duplicated onBackStackChanged() call.

Bug 37433435

We were reporting onBackStackChanged() twice, once when the
operations are collected and once when the operations are
executed. This CL only reports the onBackStackChanged() after
the operations are executed.

Test: ran fragment tests
Change-Id: Idaf14cf8c64f87ba78ecd4f0a72a045a30ff9222
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
1d1dad664f27bc66fa52e4b0a294a5efb5af0ea1 25-Apr-2017 Adam Powell <adamp@google.com> Address API feedback for new fragment APIs

Bug: 37637473
Bug: 37636731
Bug: 37638276

Test: run fragment tests
Change-Id: Ib48dd8a849eb528ead311e2401407e32646c08ed
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
bae5c5f73f48516194fdf5c7cfb6b3b7d9878537 18-Apr-2017 George Mount <mount@google.com> resolve merge conflicts of 0eb50f95ba to oc-dev

Test: Ran fragment tests
Change-Id: I7a7e25bf6b99c6762f771cf818524739e6c1d56d
8b60e88655f6d4191e55b1dd8706e4ae2ae21b04 13-Apr-2017 George Mount <mount@google.com> Adds getLayoutInflater() to return a cached value.

Bug 37156970

Many applications need to get the LayoutInflater used for
fragment View inflation. onGetLayoutInflater() can be heavy
weight, so a version that caches that last value is added.

Test: ran fragment tests
Change-Id: I11d719d7416a5bb3b65f37a78e6ed96a69c32332
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
1045192d999ff058f0f27036af14ab4506b8b328 05-Apr-2017 George Mount <mount@google.com> DO NOT MERGE: Change getFragments() to return List instead of Collection

Bug 36762718

This reverts commit de7e27c0d3d1477fed1e3b1150411797f682cc21.

This CL also changes getFragments() to return a List instead
of a Colleciton as the public API and offers a reliable order
as part of the API.

Test: ran fragment tests

Change-Id: Ib18e38a9d7bc4b20797c57b7e1694e5c7b03176f
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
cfedb8d5ab2b14e025e8202fb6d0a2356e56c18f 04-Apr-2017 George Mount <mount@google.com> resolve merge conflicts of 0765353c00 to oc-dev

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I7574a0666e2e029ce7ea0ecbce6aaf1cdac98a93
0765353c002bfdf681c982565810aa4be3499dd0 01-Apr-2017 George Mount <mount@google.com> Call noteStateNotSaved on child fragment managers.

Bug 36740474

When onNewIntent() is called, it calls noteStateNotSaved on
the FragmentManager. It wasn't propagating that to child
FragmentManagers. This CL properly propagates the
noteStateNotSaved().

Test: ran fragment tests
Change-Id: Ibe0794c02059f5787e144d1ee63980990fe2a04a
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
de7e27c0d3d1477fed1e3b1150411797f682cc21 03-Apr-2017 George Mount <mount@google.com> DO NOT MERGE: Revert to List return for getFragments()

Bug 36762718

Temporarily use a List return type for getFragments to unblock
builds.

Test: removed tests relying on getFragments() and ran fragment tests
Change-Id: I7783f19b81a878280f2a25997ce554486d9d013b
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
dac8b826698e502f7a4712d50ed5739116c1fdfb 30-Mar-2017 George Mount <mount@google.com> Merge "Allow committing allowing state loss on detached FragmentManager." into nyc-support-25.4-dev
am: 3fd952f578

Change-Id: Ia8c21696069b9cb49ea9c09ea3659570e10ecdd8
875d9733f354fc93e72c7e8d849c9b5333950183 30-Mar-2017 George Mount <mount@google.com> Allow committing allowing state loss on detached FragmentManager.

Bug 36702993

Instead of throwing an exception during commitAllowStateLoss()
or commitNowAllowingStateLoss(), silently drop the transaction
when the FragmentManager is detached.

Test: ran fragment tests
Change-Id: Ic1f36c9fdbaa598b17180cfa6afbf8fa45a952a4
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
f019390c7c85b8e185d6b06eb5c7e66be7bb4143 30-Mar-2017 George Mount <mount@google.com> resolve merge conflicts of 43db3168ca to oc-dev

Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ia8a53b6307c3b543eb279e0ca45d0a2a18ae3e4c
43db3168ca4a4d309f059363054ba60bc22a9ef3 29-Mar-2017 George Mount <mount@google.com> Change getFragments() to return a collection instead of list.

Bug 34703669
Bug 36656643
Test: ran fragment and appcompat tests

Change-Id: I4c41adfebb073a74c569fc4514d38a010619c80c
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
995c3504e6c5b1d20368c36193b44a7e6844709d 22-Mar-2017 George Mount <mount@google.com> resolve merge conflicts of 945ef67304 to master

Test: Ran fragment and appcompat tests
Change-Id: I8c1d95280dbe75624aa43d64247376cd22f32a67
96221034e4a23a2abb83f772a0281bb197ac5ac0 14-Mar-2017 George Mount <mount@google.com> Make public getFragments() and getLayoutInflater() methods

Bug 34703669

Test: ran fragment tests

Change-Id: I460bc4b7c74550dddaa8345db4514c4b29094d84
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
47844337986f365dae294fb434de0c0f7f8df5db 21-Feb-2017 George Mount <mount@google.com> Expose isStateSaved() in FragmentManager.

Bug 35594367

Protect the FragmentManager during onBackPressed() from
changing the state after the state was saved.

Test: ran fragment tests
Change-Id: Iae10e71402c600566590022ae0d992b978409ccb
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
5e2b030b851bde2b4569104a01b4acf6960327a6 13-Jan-2017 Adam Powell <adamp@google.com> Fragment grab bag!

* Fragment#isStateSaved: report whether a given fragment has been
through state save within its given FragmentManager. This will
additionally echo the state of its child FragmentManager, indicating
whether it is safe to perform transactions without losing state.

* Fragment#setArguments can now be called at any time before a
fragment's state is saved, not just before an internal index is
assigned. This fixes an issue with assigning arguments during
fragment inflation in some code paths.

* FragmentTransaction#postOnCommit: Add a Runnable to a
FragmentTransaction that will be executed once the operations in the
transaction have been fully executed. Transaction optimization may
mean that other transaction ops could run before this is executed,
or that specific operations from this transaction were optimized
out. (e.g. a fragment in this transaction was added, but then
removed in a subsequent transaction before pending operations were
executed.) This may not be used for transactions added to the back
stack, as we cannot persist the runnable for later to guarantee
running it when the transaction is reversed.

Test: ./gradlew support-fragment:connectedCheck

Change-Id: Iff605d35329214d15148f3e83960cd264a8c0316
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
c90b24ff959edb955ff48e345c074a98368a90ad 28-Sep-2016 Aurimas Liutikas <aurimas@google.com> Move Support library fragment tests to JUnit4.

Test: ran all the tests locally on Nexus 5X 7.0 and they passed.
Change-Id: Ibcf77ae7227a1a30cfe4fa61e9c4bb6c554712a9
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
754cb29c50f09a83251dd4bb633ba445b2411adb 27-Sep-2016 Aurimas Liutikas <aurimas@google.com> Switch from deprecated size annotations to new ones.

Switching from android.test.suitebuilder.annotation.*Test
to android.support.test.filters.*Test.

Bug: 30074170
Test: manual - ran small appcompat tests, they still run and pass
Change-Id: Idce58b988c8e1a809f7f5fae67e0e235159d9fc5
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java
af556dcfc63652cafa822a3d742ad96c78bff037 13-Jun-2016 Clara Bayarri <clarabayarri@google.com> Throw ISE when adding a non-public non-static fragment class instance to a transaction

Also fix a test that had a private fragment and breaks with this change

Bug: 25925078
Change-Id: Ib9a2df99f4bf668cd9f650b890f9a3d44100a824
/frameworks/support/fragment/tests/java/android/support/v4/app/FragmentTransactionTest.java