[UI] Minor fix for downloader status icons

Signed-off-by: hemanggs <hemangmanhas@gmail.com>
This commit is contained in:
SYCE 2025-03-29 02:04:09 +05:30 committed by Konstantin Pastbin
parent 95398ddce2
commit 91c5d8e95c
2 changed files with 5 additions and 2 deletions

View file

@ -39,7 +39,7 @@ class BottomPanel
@Override
public void onClick(View v)
{
MapManager.nativeCancel(mFragment.getCurrentRoot());
mFragment.getAdapter().refreshData();
}
};

View file

@ -418,7 +418,10 @@ class DownloaderAdapter extends RecyclerView.Adapter<DownloaderAdapter.ViewHolde
super.updateIcon(country);
mIcon.setFocusable(country.isExpandable() && country.status != CountryItem.STATUS_DONE);
}
}.setOnIconClickListener(v -> processClick(true)).setOnCancelClickListener(v -> MapManager.nativeCancel(mItem.id));
}.setOnIconClickListener(v -> processClick(true)).setOnCancelClickListener(v -> {
MapManager.nativeCancel(mItem.id);
refreshData();
});
mName = frame.findViewById(R.id.name);
mSubtitle = frame.findViewById(R.id.subtitle);