From bae66803afefe2f844a3e8edaf591615424e9c13 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 6 Oct 2015 16:25:05 +0300 Subject: [PATCH] Fix crash --- .../src/net/osmand/plus/download/DownloadActivity.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadActivity.java b/OsmAnd/src/net/osmand/plus/download/DownloadActivity.java index 3632ea10f2..f6e26913f6 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadActivity.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadActivity.java @@ -30,7 +30,6 @@ import android.content.ActivityNotFoundException; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; -import android.content.res.Resources; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; @@ -53,10 +52,6 @@ import android.widget.ProgressBar; import android.widget.TextView; -/** - * Created by Denis - * on 08.09.2014. - */ public class DownloadActivity extends BaseDownloadActivity { private View progressView; @@ -619,8 +614,8 @@ public class DownloadActivity extends BaseDownloadActivity { public void initFreeVersionBanner(View header) { - final View freeVersionBanner = header.findViewById(R.id.freeVersionBanner); - visibleBanner = new BannerAndDownloadFreeVersion(freeVersionBanner, this); + visibleBanner = new BannerAndDownloadFreeVersion(header, this); + updateProgress(true); }