forked from organicmaps/organicmaps
[android] Fixed missing flags display
This commit is contained in:
parent
1993c39bad
commit
cf2356035e
1 changed files with 6 additions and 3 deletions
|
@ -402,13 +402,16 @@ class DownloadAdapter extends BaseAdapter
|
|||
id = R.drawable.class.getField(strID).getInt(null);
|
||||
|
||||
if (id > 0)
|
||||
{
|
||||
v.setImageResource(id);
|
||||
v.setVisibility(View.VISIBLE);
|
||||
}
|
||||
else
|
||||
Log.e(DownloadUI.TAG, "Failed to get resource id from: " + strID);
|
||||
v.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
catch (final Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
v.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -666,4 +669,4 @@ class DownloadAdapter extends BaseAdapter
|
|||
return (size + 1023) / 1024 + " " + mContext.getString(R.string.kb);
|
||||
}
|
||||
private final static long MB = 1024 * 1024;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue