浏览代码

Merge pull request #4700 from nextcloud/account-cleanup-receive-external-file-activity

Remove onAccountSet from ReceiveExternalFilesActivity
Tobias Kaminsky 5 年之前
父节点
当前提交
2a8164acf1
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java

+ 4 - 3
src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java

@@ -231,12 +231,13 @@ public class ReceiveExternalFilesActivity extends FileActivity
 
     public void changeAccount(Account account) {
         setAccount(account, false);
-        onAccountSet(mAccountWasRestored);
+        initTargetFolder();
+        populateDirectoryList();
     }
 
     @Override
-    protected void onAccountSet(boolean stateWasRecovered) {
-        super.onAccountSet(mAccountWasRestored);
+    protected void onStart() {
+        super.onStart();
         initTargetFolder();
         populateDirectoryList();
     }