From b8261fcecf09edb2bd8cb0b7bd40c2ceae964a5a Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 1 Aug 2015 21:32:38 +0200 Subject: [PATCH] EXTRA_REPO_ERRORS in Intents should be a CharSequence[], not an ArrayList This was including the instance of the ArrayList in the Intent, rather than the expected CharSequence[]. --- F-Droid/src/org/fdroid/fdroid/UpdateService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/F-Droid/src/org/fdroid/fdroid/UpdateService.java b/F-Droid/src/org/fdroid/fdroid/UpdateService.java index 2b17cbcfd..ea1c8341a 100644 --- a/F-Droid/src/org/fdroid/fdroid/UpdateService.java +++ b/F-Droid/src/org/fdroid/fdroid/UpdateService.java @@ -187,7 +187,7 @@ public class UpdateService extends IntentService implements ProgressListener { protected void sendRepoErrorStatus(int statusCode, ArrayList repoErrors) { Intent intent = new Intent(LOCAL_ACTION_STATUS); intent.putExtra(EXTRA_STATUS_CODE, statusCode); - intent.putExtra(EXTRA_REPO_ERRORS, repoErrors); + intent.putExtra(EXTRA_REPO_ERRORS, repoErrors.toArray(new CharSequence[repoErrors.size()])); LocalBroadcastManager.getInstance(this).sendBroadcast(intent); }