diff options
author | Dmitry Yunitsky <yunik@mapswithme.com> | 2016-03-18 14:36:27 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:56:59 +0300 |
commit | 14d4437993557a04a891f0d96b75e39cd4dd5445 (patch) | |
tree | f79b502a377c949c26ce4e983142be05ab3bd004 | |
parent | ad1f192f8e4aec26444246a87ba2b85861845c97 (diff) |
Review fixes.
-rw-r--r-- | android/res/layout/place_page_preview_common.xml | 3 | ||||
-rw-r--r-- | android/res/values/themes-base.xml | 2 | ||||
-rw-r--r-- | android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java | 3 |
3 files changed, 4 insertions, 4 deletions
diff --git a/android/res/layout/place_page_preview_common.xml b/android/res/layout/place_page_preview_common.xml index 754a89b11e..d9964ed2c4 100644 --- a/android/res/layout/place_page_preview_common.xml +++ b/android/res/layout/place_page_preview_common.xml @@ -57,7 +57,8 @@ android:layout_marginEnd="@dimen/margin_quarter" android:layout_marginRight="@dimen/margin_quarter" android:clickable="true" - android:padding="@dimen/margin_half"/> + android:padding="@dimen/margin_half" + android:src="?ppArrowDrawable"/> <TextView android:id="@+id/tv__straight_distance" diff --git a/android/res/values/themes-base.xml b/android/res/values/themes-base.xml index 85bb6d06ba..931b31ac2e 100644 --- a/android/res/values/themes-base.xml +++ b/android/res/values/themes-base.xml @@ -72,7 +72,7 @@ <item name="android:colorPrimaryDark" tools:targetApi="lollipop">?statusBar</item> <item name="android:windowDrawsSystemBarBackgrounds" tools:targetApi="lollipop">true</item> <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item> - <item name="android:fontFamily"tools:targetApi="jelly_bean">@string/robotoRegular</item> + <item name="android:fontFamily" tools:targetApi="jelly_bean">@string/robotoRegular</item> <item name="android:colorBackgroundCacheHint">@null</item> <item name="clickableBackground">?selectableItemBackground</item> diff --git a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java index 657b28675e..9109238d39 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java +++ b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java @@ -171,7 +171,6 @@ public class PlacePageView extends RelativeLayout implements View.OnClickListene mTvDistance = (TextView) mPreview.findViewById(R.id.tv__straight_distance); mAvDirection = (ArrowView) mPreview.findViewById(R.id.av__direction); mAvDirection.setOnClickListener(this); - mAvDirection.setImageResource(ThemeUtils.getResource(getContext(), R.attr.ppArrowDrawable)); mTvAddress = (TextView) mPreview.findViewById(R.id.tv__address); mDetails = (ScrollView) findViewById(R.id.pp__details); @@ -412,7 +411,7 @@ public class PlacePageView extends RelativeLayout implements View.OnClickListene if (mToolbar != null) mToolbar.setTitle(mMapObject.getTitle()); UiUtils.setTextAndHideIfEmpty(mTvSubtitle, mMapObject.getSubtitle()); - mAvDirection.setVisibility(View.GONE); + UiUtils.hide(mAvDirection); UiUtils.setTextAndHideIfEmpty(mTvAddress, mMapObject.getAddress()); } |