mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-02-06 13:12:26 -05:00
fix download progress when installing apps via swap
fixes issue that came from all the #601 !278 changes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user