forked from organicmaps/organicmaps
[android] Fixed issue when "open with" is shown with no pending intent.
This commit is contained in:
parent
0502e8f6ae
commit
08e35658d3
1 changed files with 3 additions and 2 deletions
|
@ -100,11 +100,12 @@ public class MapObjectFragment extends Fragment
|
|||
UiUtils.show(mAddToBookmarks);
|
||||
UiUtils.hide(mEditBmk);
|
||||
|
||||
if (MWMRequest.hasRequest())
|
||||
final MWMRequest request = MWMRequest.getCurrentRequest();
|
||||
if (request != null && request.hasPendingIntent())
|
||||
{
|
||||
UiUtils.show(mOpenWith);
|
||||
mOpenWith.setCompoundDrawables(UiUtils
|
||||
.setCompoundDrawableBounds(MWMRequest.getCurrentRequest().getIcon(getActivity()), R.dimen.icon_size, getResources()), null, null, null);
|
||||
.setCompoundDrawableBounds(request.getIcon(getActivity()), R.dimen.icon_size, getResources()), null, null, null);
|
||||
}
|
||||
else
|
||||
UiUtils.hide(mOpenWith);
|
||||
|
|
Loading…
Add table
Reference in a new issue