diff options
author | Kunhung Li <kunhungli@google.com> | 2021-04-26 20:07:03 +0800 |
---|---|---|
committer | Kunhung Li <kunhungli@google.com> | 2021-04-27 14:14:01 +0800 |
commit | 202f4078db32f41e5f8088ec6ba401bb492d9944 (patch) | |
tree | 645a6c3ab2564eaba8e8d340daad6199a339d932 /src/com/android | |
parent | 273aabc4a76507ea959e3ca61c47d4d99a6b9b11 (diff) | |
download | ThemePicker-202f4078db32f41e5f8088ec6ba401bb492d9944.tar.gz |
Fix collapsing toolbar does not stretch to top
- Make status bar color become transparent.
- Use getSystemWindowInsetTop() to keep status bar height for
GridFragment.
Bug: 186382184
Test: manual
Change-Id: Ic0b510c0526394e98b7a819324382560f5c3d4e6
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/customization/picker/grid/GridFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/customization/picker/grid/GridFragment.java b/src/com/android/customization/picker/grid/GridFragment.java index d9b40359..ab381eec 100644 --- a/src/com/android/customization/picker/grid/GridFragment.java +++ b/src/com/android/customization/picker/grid/GridFragment.java @@ -120,7 +120,7 @@ public class GridFragment extends AppbarFragment { view.setOnApplyWindowInsetsListener((v, windowInsets) -> { v.setPadding( v.getPaddingLeft(), - v.getPaddingTop(), + windowInsets.getSystemWindowInsetTop(), v.getPaddingRight(), windowInsets.getSystemWindowInsetBottom()); return windowInsets.consumeSystemWindowInsets(); |