From 526f763224072bf4b5f725d75f0bbcab7803d358 Mon Sep 17 00:00:00 2001 From: Chumva Date: Thu, 2 Aug 2018 16:35:32 +0300 Subject: [PATCH] remove unnecessary changes --- .../src/net/osmand/telegram/ui/MyLocationTabFragment.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt index 85b9eaa08d..cddf3b3ff0 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt @@ -316,13 +316,18 @@ class MyLocationTabFragment : Fragment(), TelegramListener { playTogether(cornerAnimator, marginAnimator) addListener(object : AnimatorListenerAdapter() { override fun onAnimationEnd(animation: Animator?) { - adjustAppbar() + updateTitleTextColor() + if (appBarCollapsed && Build.VERSION.SDK_INT >= 21) { + appBarLayout.outlineProvider = appBarOutlineProvider + } } }) start() } - adjustAppbar() + if (!appBarCollapsed && Build.VERSION.SDK_INT >= 21) { + appBarLayout.outlineProvider = null + } } private fun updateTitleTextColor() {