Show notification when Onedrive authentication starts

This commit is contained in:
Julian Raufelder 2022-01-28 18:20:41 +01:00
parent db050e04f0
commit f586e447f5
No known key found for this signature in database
GPG Key ID: 17EE71F6634E381D
2 changed files with 4 additions and 0 deletions

View File

@ -547,6 +547,8 @@
<string name="notification_update_check_finished_latest">Latest version installed</string>
<string name="notification_authenticating">Authenticating&#8230;</string>
<string name="screen_settings_lru_cache">Cache</string>
<string name="screen_settings_lru_cache_toggle" translatable="false">@string/screen_settings_section_auto_photo_upload_toggle</string>
<string name="screen_settings_lru_cache_toggle_summary">Cache recently accessed files encrypted locally on the device for later reuse when reopened</string>

View File

@ -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,