forked from organicmaps/organicmaps
Animation fix for 2.3
This commit is contained in:
parent
e2673fd345
commit
16e5b964e5
2 changed files with 13 additions and 0 deletions
|
@ -752,6 +752,15 @@ public class MWMActivity extends BaseMwmFragmentActivity
|
|||
private void hideBottomButtons()
|
||||
{
|
||||
UiUtils.hide(mLlBookmarks, mLlDownloader, mLlSettings, mLlShare, mLlSearch);
|
||||
// IMPORTANT views after alpha animations with 'setFillAfter' on 2.3 can't become GONE, until clearAnimation is called.
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB)
|
||||
{
|
||||
mLlSearch.clearAnimation();
|
||||
mLlBookmarks.clearAnimation();
|
||||
mLlDownloader.clearAnimation();
|
||||
mLlShare.clearAnimation();
|
||||
mLlSettings.clearAnimation();
|
||||
}
|
||||
if (mButtonsAnimation != null && mButtonsAnimation.isRunning())
|
||||
mButtonsAnimation.end();
|
||||
mBtnMenu.setVisibility(View.VISIBLE);
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package com.mapswithme.maps.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.MotionEvent;
|
||||
|
@ -25,6 +26,9 @@ public class FadeView extends FrameLayout
|
|||
public void onAnimationEnd(Animator animation)
|
||||
{
|
||||
setVisibility(View.GONE);
|
||||
// IMPORTANT views after alpha animations with 'setFillAfter' on 2.3 can't become GONE, until clearAnimation is called.
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB)
|
||||
clearAnimation();
|
||||
if (mFadeListener != null && mDoNotify)
|
||||
mFadeListener.onFadeOut();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue