1
0
Fork 0
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:
Felix Ableitner 2015-11-16 21:58:00 +01:00
parent 89d524c70f
commit 7d0a9fe436

View file

@ -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();