瀏覽代碼

Merge pull request #4141 from nextcloud/sharePictureToNC

Fix crash on sharing file to NC with multiple accounts
Andy Scherzinger 5 年之前
父節點
當前提交
2dd34a786f
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/main/java/com/nextcloud/client/di/ComponentsModule.java

+ 7 - 1
src/main/java/com/nextcloud/client/di/ComponentsModule.java

@@ -20,6 +20,7 @@
 
 package com.nextcloud.client.di;
 
+import com.nextcloud.client.onboarding.FirstRunActivity;
 import com.nextcloud.client.onboarding.WhatsNewActivity;
 import com.owncloud.android.authentication.AuthenticatorActivity;
 import com.owncloud.android.authentication.DeepLinkLoginActivity;
@@ -43,7 +44,6 @@ import com.owncloud.android.ui.activity.ErrorsWhileCopyingHandlerActivity;
 import com.owncloud.android.ui.activity.ExternalSiteWebView;
 import com.owncloud.android.ui.activity.FileDisplayActivity;
 import com.owncloud.android.ui.activity.FilePickerActivity;
-import com.nextcloud.client.onboarding.FirstRunActivity;
 import com.owncloud.android.ui.activity.FolderPickerActivity;
 import com.owncloud.android.ui.activity.LogHistoryActivity;
 import com.owncloud.android.ui.activity.ManageAccountsActivity;
@@ -136,6 +136,12 @@ abstract class ComponentsModule {
     @ContributesAndroidInjector abstract PreviewMediaFragment previewMediaFragment();
     @ContributesAndroidInjector abstract PreviewTextFragment previewTextFragment();
 
+    @ContributesAndroidInjector
+    abstract ReceiveExternalFilesActivity.DialogMultipleAccount dialogMultipleAccount();
+
+    @ContributesAndroidInjector
+    abstract ReceiveExternalFilesActivity.DialogInputUploadFilename dialogInputUploadFilename();
+
     @ContributesAndroidInjector abstract FileUploader fileUploader();
     @ContributesAndroidInjector abstract FileDownloader fileDownloader();