From f586e447f5acca26fe3fc915254438b5ae0d69d8 Mon Sep 17 00:00:00 2001 From: Julian Raufelder Date: Fri, 28 Jan 2022 18:20:41 +0100 Subject: [PATCH] Show notification when Onedrive authentication starts --- presentation/src/main/res/values/strings.xml | 2 ++ .../presentation/presenter/AuthenticateCloudPresenter.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/presentation/src/main/res/values/strings.xml b/presentation/src/main/res/values/strings.xml index 77d6a204..03d574f8 100644 --- a/presentation/src/main/res/values/strings.xml +++ b/presentation/src/main/res/values/strings.xml @@ -547,6 +547,8 @@ Latest version installed + Authenticating… + Cache @string/screen_settings_section_auto_photo_upload_toggle Cache recently accessed files encrypted locally on the device for later reuse when reopened diff --git a/presentation/src/notFoss/java/org/cryptomator/presentation/presenter/AuthenticateCloudPresenter.kt b/presentation/src/notFoss/java/org/cryptomator/presentation/presenter/AuthenticateCloudPresenter.kt index f0454849..f84f0af1 100644 --- a/presentation/src/notFoss/java/org/cryptomator/presentation/presenter/AuthenticateCloudPresenter.kt +++ b/presentation/src/notFoss/java/org/cryptomator/presentation/presenter/AuthenticateCloudPresenter.kt @@ -274,6 +274,8 @@ class AuthenticateCloudPresenter @Inject constructor( // private fun startAuthentication(cloud: CloudModel) { authenticationStarted = true + Toast.makeText(context(), R.string.notification_authenticating, Toast.LENGTH_SHORT).show() + PublicClientApplication.createMultipleAccountPublicClientApplication( context(), R.raw.auth_config_onedrive,