fix download progress when installing apps via swap
fixes issue that came from all the #601 !278 changes
This commit is contained in:
parent
388dbbb2de
commit
5f1aee8f0d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user