Bugfix: right drawer could be opened via menu while IITC was still loading (which may have caused a NullPointerException)

This commit is contained in:
fkloft
2013-09-24 14:57:26 +02:00
parent 0fe3953a83
commit 6f5ca2aa4b

View File

@ -299,7 +299,8 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt
} }
public void openRightDrawer() { public void openRightDrawer() {
mDrawerLayout.openDrawer(mDrawerRight); if (mDrawerLayout.getDrawerLockMode(mDrawerRight) == DrawerLayout.LOCK_MODE_UNLOCKED)
mDrawerLayout.openDrawer(mDrawerRight);
} }
public void reset() { public void reset() {