def582a5836579a3fadabfdbe4413cb1652bf098 |
|
13-Mar-2018 |
Aurimas Liutikas <aurimas@google.com> |
Fix imports for samples code. A follow up after factor to make it so androidx imports go in the correct order. Test: ./gradlew buildOnServer Change-Id: Ibb836331e3acb87e98190caef74940b4ed39aa79
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/DetailsSupportFragment.java
|
ac5fe7c617c66850fff75a9fce9979c6e5674b0f |
|
06-Mar-2018 |
Aurimas Liutikas <aurimas@google.com> |
Refactor support library Test: None Change-Id: I92e450c739fc9d77e8f8840bed4165ab88247fd6
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/DetailsSupportFragment.java
|
f27b1ffc67228d73326ec3426fef4c9db75cd6fd |
|
06-Mar-2018 |
Aurimas Liutikas <aurimas@google.com> |
Revert "Refactor support library." This reverts commit b31c3281d870e9abb673db239234d580dcc4feff. Change-Id: Icfa5b9af633739ad2c857dff22a2181bac6661ef
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/DetailsSupportFragment.java
|
b31c3281d870e9abb673db239234d580dcc4feff |
|
20-Feb-2018 |
Aurimas Liutikas <aurimas@google.com> |
Refactor support library. Test: None Change-Id: I11a047324832801555673dac45ec1d6590a6338b
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/DetailsSupportFragment.java
|
99e222d5b14544bbb89d402eb704829c642f8abf |
|
26-Oct-2017 |
Dake Gu <dake@google.com> |
leanback: fix duplicated fragment in BrowseFragment.setAdapter() When calling BrowseFragment.setAdapter() with a list of rows, a fragment will be created, then later initial row selection will create another copy of fragment. This also breaks slide-in entrance transition that was launched on first fragment and immediately was wiped off by second fragment replacement. The fix removes replaceMainFragment() call from setAdapter(). Also some minor fix to allow setAdapter(null). Currently sample app call setAdapter() with empty list first. So it does not show the problem of duplicated fragment. This fix enables sample code to call setAdapter() with loaded data which is very important in restoring view state. Gridview needs to get list of data in first layout pass in order to restore focus index and children states. For example if there is only 1 item in the first layout pass after restoring, GridView is unable to restore focus index to 3. Added lots of BrowseFragment tests for checking savedInstance gets restored properly. Fixed generatev4.py script for demo app after new directory sturcture. Bug: 68273047 Test: browseFragmentSetNullAdapter browseFragmentRestore mixedBrowseFragmentRestoreToListRow mixedBrowseFragmentRestoreToSampleRowsFragmentHideFastLane mixedBrowseFragmentRestoreToSampleRowsFragmentShowFastLane mixedBrowseFragmentRestoreToSampleFragmentHideFastLane mixedBrowseFragmentRestoreToSampleFragmentShowFastLane Manual test, turn on "dont keep activity", start BrowseActivity, click card to open DetailsActivity, hit BACK, BrowseActivity is recreated, focus is restored to exact same row and item. Change-Id: I2e2a703b142e6f9573ee961042ed92792bf8c9a5
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/DetailsSupportFragment.java
|
f266a0a76eb23a0a00ae16f823df2af73bff480f |
|
06-Oct-2017 |
Aurimas Liutikas <aurimas@google.com> |
Megamove part 2. Move to standard directories. Bug: 67054326 Test: ./gradlew buildOnServer Change-Id: I568c70f5ecceef54e6854dd75b20522dae01b25a
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/DetailsSupportFragment.java
|