forked from organicmaps/organicmaps
[UI] Minor fix for downloader status icons
Signed-off-by: hemanggs <hemangmanhas@gmail.com>
This commit is contained in:
parent
95398ddce2
commit
91c5d8e95c
2 changed files with 5 additions and 2 deletions
|
@ -39,7 +39,7 @@ class BottomPanel
|
|||
@Override
|
||||
public void onClick(View v)
|
||||
{
|
||||
MapManager.nativeCancel(mFragment.getCurrentRoot());
|
||||
mFragment.getAdapter().refreshData();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue