Skip to content

Commit b3f7b66

Browse files
pekingmedsn5ft
authored andcommitted
[AppBarLayout] Fixed dragging the app bar layout overshoots the status bar.
Resolves #3316 PiperOrigin-RevId: 520466126
1 parent c1ef52b commit b3f7b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/java/com/google/android/material/appbar/AppBarLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2043,7 +2043,7 @@ void onFlingFinished(@NonNull CoordinatorLayout parent, @NonNull T layout) {
20432043

20442044
@Override
20452045
int getMaxDragOffset(@NonNull T view) {
2046-
return -view.getDownNestedScrollRange();
2046+
return -view.getDownNestedScrollRange() + view.getTopInset();
20472047
}
20482048

20492049
@Override

0 commit comments

Comments
 (0)