Browse Source

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

David A. Velasco 10 năm trước cách đây
mục cha
commit
05e2bf041d
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/com/owncloud/android/ui/activity/FileActivity.java

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