Close drawer before jumping to other activities so that it's not still open when come back later

This commit is contained in:
David A. Velasco 2015-06-02 01:41:11 +02:00
parent 7a941e0b0b
commit 05e2bf041d

View file

@ -866,12 +866,14 @@ public class FileActivity extends ActionBarActivity
Intent settingsIntent = new Intent(getApplicationContext(),
Preferences.class);
startActivity(settingsIntent);
mDrawerLayout.closeDrawers();
break;
case 2: // Logs
Intent loggerIntent = new Intent(getApplicationContext(),
LogHistoryActivity.class);
startActivity(loggerIntent);
mDrawerLayout.closeDrawers();
break;
}
}