mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 04:41:16 +00:00
Fixed menu key drawer open using wrong drawer gravity (fixes #499).
This commit is contained in:
parent
89d524c70f
commit
7d0a9fe436
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ public class MainActivity extends SyncthingActivity
|
||||||
public boolean onKeyDown(int keyCode, KeyEvent e) {
|
public boolean onKeyDown(int keyCode, KeyEvent e) {
|
||||||
if (keyCode == KeyEvent.KEYCODE_MENU) {
|
if (keyCode == KeyEvent.KEYCODE_MENU) {
|
||||||
if (!mDrawerLayout.isDrawerOpen(GravityCompat.START))
|
if (!mDrawerLayout.isDrawerOpen(GravityCompat.START))
|
||||||
mDrawerLayout.openDrawer(GravityCompat.END);
|
mDrawerLayout.openDrawer(GravityCompat.START);
|
||||||
else
|
else
|
||||||
closeDrawer();
|
closeDrawer();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue