From: David A. Velasco Date: Mon, 1 Jun 2015 23:41:11 +0000 (+0200) Subject: Close drawer before jumping to other activities so that it's not still open when... X-Git-Tag: oc-android-1.7.2~1^2~23^2~17 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/05e2bf041dfeff01328fa31a37107eb8515248d3 Close drawer before jumping to other activities so that it's not still open when come back later --- diff --git a/src/com/owncloud/android/ui/activity/FileActivity.java b/src/com/owncloud/android/ui/activity/FileActivity.java index 28f74e00..382019f8 100644 --- a/src/com/owncloud/android/ui/activity/FileActivity.java +++ b/src/com/owncloud/android/ui/activity/FileActivity.java @@ -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; } }