Skip to content

Commit

Permalink
[AppBarLayout] Added isLifted() getter
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 331606863
  • Loading branch information
dsn5ft authored and pekingme committed Sep 15, 2020
1 parent 1ec32fc commit 4a0f60c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/java/com/google/android/material/appbar/AppBarLayout.java
Expand Up @@ -836,6 +836,13 @@ public boolean setLifted(boolean lifted) {
return setLiftedState(lifted);
}

/**
* Returns whether the {@link AppBarLayout} is in a lifted state or not.
*/
public boolean isLifted() {
return lifted;
}

// Internal helper method that updates lifted state.
boolean setLiftedState(boolean lifted) {
if (this.lifted != lifted) {
Expand Down

0 comments on commit 4a0f60c

Please sign in to comment.