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[].
This commit is contained in:
parent
60f02c0181
commit
b8261fcecf
@ -187,7 +187,7 @@ public class UpdateService extends IntentService implements ProgressListener {
|
|||||||
protected void sendRepoErrorStatus(int statusCode, ArrayList<CharSequence> repoErrors) {
|
protected void sendRepoErrorStatus(int statusCode, ArrayList<CharSequence> repoErrors) {
|
||||||
Intent intent = new Intent(LOCAL_ACTION_STATUS);
|
Intent intent = new Intent(LOCAL_ACTION_STATUS);
|
||||||
intent.putExtra(EXTRA_STATUS_CODE, statusCode);
|
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);
|
LocalBroadcastManager.getInstance(this).sendBroadcast(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user