瀏覽代碼

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

David A. Velasco 10 年之前
父節點
當前提交
05e2bf041d
共有 1 個文件被更改,包括 2 次插入0 次删除
  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(),
                     Intent settingsIntent = new Intent(getApplicationContext(),
                             Preferences.class);
                             Preferences.class);
                     startActivity(settingsIntent);
                     startActivity(settingsIntent);
+                    mDrawerLayout.closeDrawers();
                     break;
                     break;
 
 
                 case 2: // Logs
                 case 2: // Logs
                     Intent loggerIntent = new Intent(getApplicationContext(),
                     Intent loggerIntent = new Intent(getApplicationContext(),
                             LogHistoryActivity.class);
                             LogHistoryActivity.class);
                     startActivity(loggerIntent);
                     startActivity(loggerIntent);
+                    mDrawerLayout.closeDrawers();
                     break;
                     break;
             }
             }
         }
         }