Skip to content

Commit

Permalink
Update TabLayout elevation overlays to be based absolute elevation, f…
Browse files Browse the repository at this point in the history
…actoring in the elevation of all parent views

Resolves #381

PiperOrigin-RevId: 255478483
  • Loading branch information
dsn5ft authored and raajkumars committed Jul 3, 2019
1 parent 469c126 commit cd1b6cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/java/com/google/android/material/tabs/TabLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,8 @@ public boolean shouldDelayChildPressedState() {
protected void onAttachedToWindow() {
super.onAttachedToWindow();

MaterialShapeUtils.setParentAbsoluteElevation(this);

if (viewPager == null) {
// If we don't have a ViewPager already, check if our parent is a ViewPager to
// setup with it automatically
Expand Down

0 comments on commit cd1b6cd

Please sign in to comment.