mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 11:15:51 +00:00
Refactoring
This commit is contained in:
parent
f1e09b3385
commit
8fd39d32ef
1 changed files with 5 additions and 1 deletions
|
@ -76,7 +76,11 @@ public class DrawerLayoutEx extends DrawerLayout {
|
|||
@Override
|
||||
protected void onRestoreInstanceState(Parcelable state) {
|
||||
super.onRestoreInstanceState(state);
|
||||
locked = (getDrawerLockMode(Gravity.LEFT) == LOCK_MODE_LOCKED_OPEN ||
|
||||
locked = isLocked();
|
||||
}
|
||||
|
||||
public boolean isLocked() {
|
||||
return (getDrawerLockMode(Gravity.LEFT) == LOCK_MODE_LOCKED_OPEN ||
|
||||
getDrawerLockMode(Gravity.RIGHT) == LOCK_MODE_LOCKED_OPEN);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue