This commit is contained in:
Alexey Kulish 2017-03-18 14:48:55 +03:00
parent afdaedbf36
commit e1d16a4ae5

View file

@ -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);
}
}