Request left drawer locked state after scene view created
This commit is contained in:
1 parent
f213254e2b
commit
5b85a9ddef
7 files changed
+42
-12
No files matched your search
@@ -251,13 +251,9 @@ public final class MainActivity extends StageActivity
|
||||
}
|
||||
}
|
||||
|
||||
public void setDrawerLayoutEnable(boolean enable) {
|
||||
public void setDrawerLockMode(int lockMode, int edgeGravity) {
|
||||
if (mDrawerLayout != null) {
|
||||
if (enable) {
|
||||
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);
|
||||
} else {
|
||||
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
|
||||
}
|
||||
mDrawerLayout.setDrawerLockMode(lockMode, edgeGravity);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user