-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
693 additions
and
152 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
- Weitere Anpassungen zur Integration in das F-Droid Haupt-Repository | ||
- Workaround für die Bearbeitung von Dateien in Microsoft Office-Anwendungen hinzugefügt | ||
- Unterstützung für thematisches Cryptomator-Symbol hinzugefügt | ||
- Aktualisieren eines veralteten Authentifizierungs-Tokens beim automatischen Hochladen | ||
- Übersetzungen aktualisiert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
- Further customizations for integration into the F-Droid main repository | ||
- Add workaround for editing files in Microsoft Office apps | ||
- Add support for themed Cryptomator icon | ||
- Refresh stale authentication token during auto upload | ||
- Update translations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<ul> | ||
<li>Further customizations for integration into the F-Droid main repository</li> | ||
<li>Add workaround for editing files in Microsoft Office apps</li> | ||
<li>Add support for themed Cryptomator icon</li> | ||
<li>Refresh stale authentication token during auto upload</li> | ||
<li>Update translations</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...n/src/main/java/org/cryptomator/presentation/presenter/AutoUploadRefreshTokenPresenter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.cryptomator.presentation.presenter | ||
|
||
import org.cryptomator.domain.Cloud | ||
import org.cryptomator.domain.di.PerView | ||
import org.cryptomator.domain.exception.authentication.AuthenticationException | ||
import org.cryptomator.generator.Callback | ||
import org.cryptomator.presentation.CryptomatorApp | ||
import org.cryptomator.presentation.exception.ExceptionHandlers | ||
import org.cryptomator.presentation.ui.activity.view.AutoUploadRefreshTokenView | ||
import org.cryptomator.presentation.workflow.ActivityResult | ||
import org.cryptomator.presentation.workflow.AuthenticationExceptionHandler | ||
import javax.inject.Inject | ||
|
||
@PerView | ||
class AutoUploadRefreshTokenPresenter @Inject constructor( | ||
exceptionHandlers: ExceptionHandlers, // | ||
private val authenticationExceptionHandler: AuthenticationExceptionHandler, // | ||
) : Presenter<AutoUploadRefreshTokenView>(exceptionHandlers) { | ||
|
||
fun refreshCloudToken(authenticationException: AuthenticationException) { | ||
authenticationExceptionHandler.handleAuthenticationException( // | ||
this@AutoUploadRefreshTokenPresenter, // | ||
authenticationException, // | ||
ActivityResultCallbacks.onAutoUploadCloudAuthenticated(authenticationException.cloud) | ||
) | ||
} | ||
|
||
@Callback(dispatchResultOkOnly = false) | ||
fun onAutoUploadCloudAuthenticated(result: ActivityResult, cloud: Cloud) { | ||
if (result.isResultOk) { | ||
val cryptomatorApp = activity().application as CryptomatorApp | ||
cryptomatorApp.startAutoUpload(cloud) | ||
} | ||
finish() | ||
} | ||
} |
Oops, something went wrong.