From e1d16a4ae5967b5bcc227ec483c0379a45e697d6 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Sat, 18 Mar 2017 14:48:55 +0300 Subject: [PATCH] Fix --- .../plus/download/ui/DownloadResourceGroupFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/download/ui/DownloadResourceGroupFragment.java b/OsmAnd/src/net/osmand/plus/download/ui/DownloadResourceGroupFragment.java index dd23fb4b85..7a52cec6a2 100644 --- a/OsmAnd/src/net/osmand/plus/download/ui/DownloadResourceGroupFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/ui/DownloadResourceGroupFragment.java @@ -183,7 +183,7 @@ public class DownloadResourceGroupFragment extends DialogFragment implements Dow @Override public void onGetItems() { - if (restorePurchasesView != null && restorePurchasesView.getVisibility() == View.VISIBLE) { + if (restorePurchasesView != null && restorePurchasesView.findViewById(R.id.container).getVisibility() == View.VISIBLE) { restorePurchasesView.findViewById(R.id.container).setVisibility(View.GONE); } } @@ -198,7 +198,7 @@ public class DownloadResourceGroupFragment extends DialogFragment implements Dow @Override public void dismissProgress() { - if (restorePurchasesView != null && restorePurchasesView.getVisibility() == View.VISIBLE) { + if (restorePurchasesView != null && restorePurchasesView.findViewById(R.id.container).getVisibility() == View.VISIBLE) { restorePurchasesView.findViewById(R.id.progressBar).setVisibility(View.GONE); } }