diff --git a/presentation/src/main/AndroidManifest.xml b/presentation/src/main/AndroidManifest.xml
index 61dea3f0..0e2bbcf7 100644
--- a/presentation/src/main/AndroidManifest.xml
+++ b/presentation/src/main/AndroidManifest.xml
@@ -101,7 +101,6 @@
-
diff --git a/presentation/src/main/java/org/cryptomator/presentation/di/component/ActivityComponent.java b/presentation/src/main/java/org/cryptomator/presentation/di/component/ActivityComponent.java
index db8337fe..07aec966 100644
--- a/presentation/src/main/java/org/cryptomator/presentation/di/component/ActivityComponent.java
+++ b/presentation/src/main/java/org/cryptomator/presentation/di/component/ActivityComponent.java
@@ -13,7 +13,6 @@ import org.cryptomator.presentation.ui.activity.ChooseCloudServiceActivity;
import org.cryptomator.presentation.ui.activity.CloudConnectionListActivity;
import org.cryptomator.presentation.ui.activity.CloudSettingsActivity;
import org.cryptomator.presentation.ui.activity.CreateVaultActivity;
-import org.cryptomator.presentation.ui.activity.EmptyDirIdFileInfoActivity;
import org.cryptomator.presentation.ui.activity.ImagePreviewActivity;
import org.cryptomator.presentation.ui.activity.LicenseCheckActivity;
import org.cryptomator.presentation.ui.activity.LicensesActivity;
@@ -32,7 +31,6 @@ import org.cryptomator.presentation.ui.fragment.BrowseFilesFragment;
import org.cryptomator.presentation.ui.fragment.ChooseCloudServiceFragment;
import org.cryptomator.presentation.ui.fragment.CloudConnectionListFragment;
import org.cryptomator.presentation.ui.fragment.CloudSettingsFragment;
-import org.cryptomator.presentation.ui.fragment.EmptyDirIdFileInfoFragment;
import org.cryptomator.presentation.ui.fragment.ImagePreviewFragment;
import org.cryptomator.presentation.ui.fragment.S3AddOrChangeFragment;
import org.cryptomator.presentation.ui.fragment.SetPasswordFragment;
@@ -96,10 +94,6 @@ public interface ActivityComponent {
void inject(CloudConnectionListActivity cloudConnectionListActivity);
- void inject(EmptyDirIdFileInfoActivity emptyDirIdFileInfoActivity);
-
- void inject(EmptyDirIdFileInfoFragment emptyDirIdFileInfoFragment);
-
void inject(BiometricAuthSettingsActivity biometricAuthSettingsActivity);
void inject(BiometricAuthSettingsFragment biometricAuthSettingsFragment);
diff --git a/presentation/src/main/java/org/cryptomator/presentation/intent/EmptyDirIdFileInfoIntent.java b/presentation/src/main/java/org/cryptomator/presentation/intent/EmptyDirIdFileInfoIntent.java
deleted file mode 100644
index e5ec6bd5..00000000
--- a/presentation/src/main/java/org/cryptomator/presentation/intent/EmptyDirIdFileInfoIntent.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package org.cryptomator.presentation.intent;
-
-import org.cryptomator.generator.Intent;
-import org.cryptomator.presentation.ui.activity.EmptyDirIdFileInfoActivity;
-
-@Intent(EmptyDirIdFileInfoActivity.class)
-public interface EmptyDirIdFileInfoIntent {
-
- String dirName();
-
- String dirFilePath();
-
-}
diff --git a/presentation/src/main/java/org/cryptomator/presentation/presenter/BrowseFilesPresenter.kt b/presentation/src/main/java/org/cryptomator/presentation/presenter/BrowseFilesPresenter.kt
index 7124b351..b1af75db 100644
--- a/presentation/src/main/java/org/cryptomator/presentation/presenter/BrowseFilesPresenter.kt
+++ b/presentation/src/main/java/org/cryptomator/presentation/presenter/BrowseFilesPresenter.kt
@@ -167,10 +167,7 @@ class BrowseFilesPresenter @Inject constructor( //
return
}
e is EmptyDirFileException -> {
- Intents.emptyDirIdFileInfoIntent() //
- .withDirName(e.dirName) //
- .withDirFilePath(e.filePath) //
- .startActivity(this@BrowseFilesPresenter)
+ view?.showNoDirFileDialog(e.dirName, e.filePath)
}
e is SymLinkException -> {
view?.showSymLinkDialog()
diff --git a/presentation/src/main/java/org/cryptomator/presentation/presenter/EmptyDirIdFileInfoPresenter.kt b/presentation/src/main/java/org/cryptomator/presentation/presenter/EmptyDirIdFileInfoPresenter.kt
deleted file mode 100644
index 25dd5a32..00000000
--- a/presentation/src/main/java/org/cryptomator/presentation/presenter/EmptyDirIdFileInfoPresenter.kt
+++ /dev/null
@@ -1,18 +0,0 @@
-package org.cryptomator.presentation.presenter
-
-import android.content.Intent
-import android.net.Uri
-import org.cryptomator.domain.di.PerView
-import org.cryptomator.presentation.exception.ExceptionHandlers
-import org.cryptomator.presentation.ui.activity.view.EmptyDirFileView
-import javax.inject.Inject
-
-@PerView
-class EmptyDirIdFileInfoPresenter @Inject constructor(exceptionMappings: ExceptionHandlers) : Presenter(exceptionMappings) {
-
- fun onShowMoreInfoButtonPressed() {
- val intent = Intent(Intent.ACTION_VIEW)
- intent.data = Uri.parse("https://cryptomator.org/help/articles/sanitizer")
- context().startActivity(intent)
- }
-}
diff --git a/presentation/src/main/java/org/cryptomator/presentation/ui/activity/EmptyDirIdFileInfoActivity.kt b/presentation/src/main/java/org/cryptomator/presentation/ui/activity/EmptyDirIdFileInfoActivity.kt
deleted file mode 100644
index 569e66a9..00000000
--- a/presentation/src/main/java/org/cryptomator/presentation/ui/activity/EmptyDirIdFileInfoActivity.kt
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.cryptomator.presentation.ui.activity
-
-import org.cryptomator.generator.Activity
-import org.cryptomator.generator.InjectIntent
-import org.cryptomator.presentation.R
-import org.cryptomator.presentation.intent.EmptyDirIdFileInfoIntent
-import org.cryptomator.presentation.presenter.EmptyDirIdFileInfoPresenter
-import org.cryptomator.presentation.ui.activity.view.EmptyDirFileView
-import org.cryptomator.presentation.ui.fragment.EmptyDirIdFileInfoFragment
-import javax.inject.Inject
-import kotlinx.android.synthetic.main.toolbar_layout.toolbar
-
-@Activity(layout = R.layout.activity_empty_dir_file_info)
-class EmptyDirIdFileInfoActivity : BaseActivity(), EmptyDirFileView {
-
- @Inject
- lateinit var presenter: EmptyDirIdFileInfoPresenter
-
- @InjectIntent
- lateinit var emptyDirIdFileInfoIntent: EmptyDirIdFileInfoIntent
-
- override fun setupView() {
- setupToolbar()
- }
-
- private fun setupToolbar() {
- toolbar.title = getString(
- R.string.screen_empty_dir_file_info_title,
- emptyDirIdFileInfoIntent.dirName()
- )
- setSupportActionBar(toolbar)
- }
-
- override fun onResume() {
- super.onResume()
- (supportFragmentManager.findFragmentByTag("EmptyDirIdFileInfoFragment") as EmptyDirIdFileInfoFragment)
- .setDirFilePath(emptyDirIdFileInfoIntent.dirFilePath())
- }
-}
diff --git a/presentation/src/main/java/org/cryptomator/presentation/ui/fragment/EmptyDirIdFileInfoFragment.kt b/presentation/src/main/java/org/cryptomator/presentation/ui/fragment/EmptyDirIdFileInfoFragment.kt
deleted file mode 100644
index 7de9617f..00000000
--- a/presentation/src/main/java/org/cryptomator/presentation/ui/fragment/EmptyDirIdFileInfoFragment.kt
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.cryptomator.presentation.ui.fragment
-
-import org.cryptomator.generator.Fragment
-import org.cryptomator.presentation.R
-import org.cryptomator.presentation.presenter.EmptyDirIdFileInfoPresenter
-import javax.inject.Inject
-import kotlinx.android.synthetic.main.fragment_empty_dir_file_info.infoText
-import kotlinx.android.synthetic.main.fragment_empty_dir_file_info.moreDetailsButton
-
-@Fragment(R.layout.fragment_empty_dir_file_info)
-class EmptyDirIdFileInfoFragment : BaseFragment() {
-
- @Inject
- lateinit var presenter: EmptyDirIdFileInfoPresenter
-
- override fun setupView() {
- moreDetailsButton.setOnClickListener { presenter.onShowMoreInfoButtonPressed() }
- }
-
- fun setDirFilePath(dirFilePath: String) {
- infoText.text = String.format(getString(R.string.screen_empty_dir_file_info_text), dirFilePath)
- }
-}
diff --git a/presentation/src/main/res/layout/activity_empty_dir_file_info.xml b/presentation/src/main/res/layout/activity_empty_dir_file_info.xml
deleted file mode 100644
index d7fb3ca0..00000000
--- a/presentation/src/main/res/layout/activity_empty_dir_file_info.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/presentation/src/main/res/layout/fragment_empty_dir_file_info.xml b/presentation/src/main/res/layout/fragment_empty_dir_file_info.xml
deleted file mode 100644
index 21396e80..00000000
--- a/presentation/src/main/res/layout/fragment_empty_dir_file_info.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/presentation/src/main/res/values/strings.xml b/presentation/src/main/res/values/strings.xml
index bc233e7b..29db747a 100644
--- a/presentation/src/main/res/values/strings.xml
+++ b/presentation/src/main/res/values/strings.xml
@@ -292,12 +292,6 @@
%1$s could not be authenticated.
Update pCloud credentials
-
- \'%1$s\' unreachable
- Cryptomator detected that this folder is unreachable.
- It may have been deleted by another application or a faulty cloud synchronization could have caused this.\n\nTry to restore the directory file via your cloud provider to a previous version which is not empty. The file in question is:\n%1$s\n\nIf that does not work, you may use Sanitizer to check your vault for issues and possibly restore your data.
- More Details on Sanitizer
-
@@ -462,7 +456,7 @@
Back
Unable to load contents of directory
- Cloud folder \'%1$s\' doesn\'t have a directory file. It could be that the folder was created on another device and has not yet been fully synchronized to the cloud. Please check in your cloud if the following file exists:\n%2$s
+ Cloud folder \'%1$s\' doesn\'t have a valid directory file. It could be that the folder was created on another device and has not yet been fully synchronized to the cloud. Please check in your cloud if the following file exists and is not empty:\n%2$s
@string/dialog_sym_link_back_button
Beta release