89097f67f988ebba714a95e10369665280db0c27 |
|
25-Mar-2017 |
Dake Gu <dake@google.com> |
DetailsFragment: support switchToVideo in onCreate Allows DetailsFragment to be put in intial video mode and skip entrance transition and enter transition. The DetailsFragment's state model is fairly complicated including entrance transition, enter transition and switchToVideo call. So reworked StateMachine and based DetailsFragment on StateMachine, remove the PF_ flags used before. When switchToVideo is called in DetailsFragment.onCreate, there is no video fragment yet, but we still fade out cover drawable and create a pending flag once the video fragment view is created will focus on to it. Added support in GridLayoutManager to allow slideOut() when there is no child, and layout the first pass out of window. switchToVideo is not allowed with entrance transition. once prepareEntranceTransition is called, switchToVideo will be ignored until entrance transition is finished. On the other hand, calling prepareEntranceTransition after switchToVideo will be ignored. switchToVideo will clear activity enter transitions. Once it is called in onCreate, we do not want the activity enter transition to run. Test: bunch of new tests in DetailsFragmentTest for all kinds of scenarios Bug: 36126851 Change-Id: Ic0279331b12b1e285507dffda3ad351245c01a1b
/frameworks/support/v17/leanback/src/android/support/v17/leanback/util/StateMachine.java
|
694edde99dc3782374977dab6d9aa34a16c13337 |
|
15-Mar-2017 |
Dake Gu <dake@google.com> |
leanback: fix errorprone warnings Bug: 36252690 Test: N/A Change-Id: I60a692554882a17d63789a689b4d4c3c37a00aed
/frameworks/support/v17/leanback/src/android/support/v17/leanback/util/StateMachine.java
|
8e10080c914d1ad0784394fa3026b85535535847 |
|
18-Nov-2016 |
Aurimas Liutikas <aurimas@google.com> |
Move from GROUP_ID to LIBRARY_GROUP annotations - GROUP_ID was deprecated in favor of LIBRARY_GROUP. - Fix import order in touched files. Test: ./gradlew assemble assembleAndroidTest Change-Id: I2a774e93215090f42262fb86cf8e841f2a546a4f
/frameworks/support/v17/leanback/src/android/support/v17/leanback/util/StateMachine.java
|
c39d9c75590eca86a5e7e32a8824ba04a0d42e9b |
|
25-Aug-2016 |
Alan Viverette <alanv@google.com> |
Add @RestrictTo(GROUP_ID) annotations to match @hide docs annotations Also removes some unnecessary @hide annotations on classes that wouldn't have shown up in docs anyway due to package/private visibility or NO_DOCS. Bug: 27937193 Change-Id: Iab127a5a3ce57a2d61965d3cef782621eb3859f5
/frameworks/support/v17/leanback/src/android/support/v17/leanback/util/StateMachine.java
|
99ec8b0cb375f7e5577ea3ec9f09e6ff7a95de0d |
|
25-Aug-2016 |
Aurimas Liutikas <aurimas@google.com> |
Remove all the extra accessor methods added by javac in support-leanback. Change private methods to be package protected to avoid extra methods that get added to be able to access them from inner classes. This CL saves 469 methods in our jar. Bug: 31075707 Change-Id: I68c8152d060c9f35c72a2d78c608a9bccd12c86e
/frameworks/support/v17/leanback/src/android/support/v17/leanback/util/StateMachine.java
|
a5a85434f936023043f074fb86eaa6d48f7f6411 |
|
17-Mar-2016 |
Dake Gu <dake@google.com> |
BrowseFragment: Fix enter transition for lazy loaded MainFragment Entrance transition stops working because the MainFragment is no longer created in onViewCreated(). It causes two issues: 1. mMainFragment.setEntranceTransitionState(false) and onPrepareEntranceTransition() are called before mMainFragment is created, thus gets ignored. 2. The entrance transition is launched too early before mMainFragment view is created. The fix abstracted precondition for prepareEntranceTransition() and precondition for startEntranceTransition(). Refactored code using a StateMachine defining preconditions and actions for each step. Change-Id: I5d5abe60cfdf896e0bdb2ffaa1afa6e4f1faf7b4
/frameworks/support/v17/leanback/src/android/support/v17/leanback/util/StateMachine.java
|