From 66175e3ce8cb0148b3c1b67e3aa5ae000d2d0fda Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Thu, 21 Jan 2016 10:27:42 +0200 Subject: [PATCH] Fix ClassCastException. --- .../osmand/plus/liveupdates/PerformLiveUpdateAsyncTask.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/liveupdates/PerformLiveUpdateAsyncTask.java b/OsmAnd/src/net/osmand/plus/liveupdates/PerformLiveUpdateAsyncTask.java index b7c063e9b1..c2e6e78142 100644 --- a/OsmAnd/src/net/osmand/plus/liveupdates/PerformLiveUpdateAsyncTask.java +++ b/OsmAnd/src/net/osmand/plus/liveupdates/PerformLiveUpdateAsyncTask.java @@ -120,7 +120,9 @@ public class PerformLiveUpdateAsyncTask } } } else { - ((DownloadIndexesThread.DownloadEvents) context).downloadHasFinished(); + if (context instanceof DownloadIndexesThread.DownloadEvents) { + ((DownloadIndexesThread.DownloadEvents) context).downloadInProgress(); + } } } }