[android] Fixed issue when "open with" is shown with no pending intent.

This commit is contained in:
Dmitry Kunin 2013-06-11 13:25:05 +03:00 committed by Alex Zolotarev
parent 0502e8f6ae
commit 08e35658d3

View file

@ -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);