fix download progress when installing apps via swap

fixes issue that came from all the #601 !278 changes
This commit is contained in:
Hans-Christoph Steiner 2016-05-18 14:15:07 +02:00
parent da1e3b93de
commit 16a36f212c

View File

@ -245,6 +245,9 @@ public class SwapAppsView extends ListView implements
private final BroadcastReceiver downloadProgressReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
if (progressView.getVisibility() != View.VISIBLE) {
showProgress();
}
int read = intent.getIntExtra(Downloader.EXTRA_BYTES_READ, 0);
int total = intent.getIntExtra(Downloader.EXTRA_TOTAL_BYTES, 0);
if (total > 0) {