Эх сурвалжийг харах

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

David A. Velasco 10 жил өмнө
parent
commit
05e2bf041d

+ 2 - 0
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;
             }
         }