From 015aa06d79030f2af4cbcbfc19baf3318fcbae53 Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Fri, 1 Jun 2018 16:43:38 +0200 Subject: [PATCH] use a more specific input param --- .../owncloud/android/files/services/FileDownloader.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/owncloud/android/files/services/FileDownloader.java b/src/main/java/com/owncloud/android/files/services/FileDownloader.java index f5da655d37..89a885e8b1 100644 --- a/src/main/java/com/owncloud/android/files/services/FileDownloader.java +++ b/src/main/java/com/owncloud/android/files/services/FileDownloader.java @@ -614,7 +614,7 @@ public class FileDownloader extends Service .setProgress(0, 0, false); if (needsToUpdateCredentials) { - configureUpdateCredentialsNotification(download); + configureUpdateCredentialsNotification(download.getAccount()); } else { // TODO put something smart in showDetailsIntent @@ -639,11 +639,10 @@ public class FileDownloader extends Service } } - private void configureUpdateCredentialsNotification(DownloadFileOperation download) { + private void configureUpdateCredentialsNotification(Account account) { // let the user update credentials with one click Intent updateAccountCredentials = new Intent(this, AuthenticatorActivity.class); - updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ACCOUNT, - download.getAccount()); + updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ACCOUNT, account); updateAccountCredentials.putExtra( AuthenticatorActivity.EXTRA_ACTION, AuthenticatorActivity.ACTION_UPDATE_EXPIRED_TOKEN