summaryrefslogtreecommitdiff
path: root/src/com/android
diff options
context:
space:
mode:
authorKunhung Li <kunhungli@google.com>2021-04-26 20:07:03 +0800
committerKunhung Li <kunhungli@google.com>2021-04-27 14:14:01 +0800
commit202f4078db32f41e5f8088ec6ba401bb492d9944 (patch)
tree645a6c3ab2564eaba8e8d340daad6199a339d932 /src/com/android
parent273aabc4a76507ea959e3ca61c47d4d99a6b9b11 (diff)
downloadThemePicker-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.java2
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();