Skip to content

Commit

Permalink
Changed isMenuHidden to isMenuClosed
Browse files Browse the repository at this point in the history
  • Loading branch information
yarolegovich committed Sep 3, 2017
1 parent 4ca0182 commit 4a56ba4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Expand Up @@ -6,7 +6,7 @@

public interface SlidingRootNav {

boolean isMenuHidden();
boolean isMenuClosed();

boolean isMenuOpened();

Expand Down
Expand Up @@ -108,7 +108,7 @@ private void changeMenuVisibility(boolean animated, float newDragProgress) {
}

@Override
public boolean isMenuHidden() {
public boolean isMenuClosed() {
return isMenuHidden;
}

Expand Down Expand Up @@ -253,7 +253,7 @@ public boolean tryCaptureView(View child, int pointerId) {
}
boolean isOnEdge = edgeTouched;
edgeTouched = false;
if (isMenuHidden()) {
if (isMenuClosed()) {
return child == rootView && isOnEdge;
} else {
if (child != rootView) {
Expand Down
Expand Up @@ -29,14 +29,14 @@ public void closeDrawer(int gravity) {

@Override
public boolean isDrawerVisible(int drawerGravity) {
return !adaptee.isMenuHidden();
return !adaptee.isMenuClosed();
}

@Override
public int getDrawerLockMode(int edgeGravity) {
if (adaptee.isMenuLocked() && adaptee.isMenuHidden()) {
if (adaptee.isMenuLocked() && adaptee.isMenuClosed()) {
return DrawerLayout.LOCK_MODE_LOCKED_CLOSED;
} else if (adaptee.isMenuLocked() && !adaptee.isMenuHidden()) {
} else if (adaptee.isMenuLocked() && !adaptee.isMenuClosed()) {
return DrawerLayout.LOCK_MODE_LOCKED_OPEN;
} else {
return DrawerLayout.LOCK_MODE_UNLOCKED;
Expand Down
Expand Up @@ -20,7 +20,7 @@ public HiddenMenuClickConsumer(Context context) {

@Override
public boolean onTouchEvent(MotionEvent event) {
return menuHost.isMenuHidden();
return menuHost.isMenuClosed();
}

public void setMenuHost(SlidingRootNavLayout layout) {
Expand Down

0 comments on commit 4a56ba4

Please sign in to comment.