From b0d193ba5ebba4a0576029fb43fb0cce4177ed32 Mon Sep 17 00:00:00 2001 From: lichen228 Date: Fri, 3 May 2013 14:14:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug=EF=BC=9A=E9=80=80?= =?UTF-8?q?=E5=87=BA=E5=AE=A2=E6=88=B7=E7=AB=AF=E6=97=B6=E8=BF=9E=E7=BB=AD?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1=E7=82=B9=E5=87=BB=E8=BF=94=E5=9B=9E=E9=94=AE?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E9=87=8D=E5=A4=8D=E5=8A=A8=E7=94=BB=E6=95=88?= =?UTF-8?q?=E6=9E=9C=E6=97=A0=E6=B3=95=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/src/cn/eoe/app/ui/MainActivity.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/src/cn/eoe/app/ui/MainActivity.java b/source/src/cn/eoe/app/ui/MainActivity.java index 7b330c9..2bba99a 100644 --- a/source/src/cn/eoe/app/ui/MainActivity.java +++ b/source/src/cn/eoe/app/ui/MainActivity.java @@ -123,6 +123,9 @@ public class MainActivity extends BaseSlidingFragmentActivity implements private InputMethodManager imm; private boolean isShowPopupWindows = false; + + //Exit Anim + private Animation anim; // [end] @@ -393,10 +396,10 @@ public boolean onKeyDown(int keyCode, KeyEvent event) { getResources().getString(R.string.press_again_exit), Toast.LENGTH_SHORT).show(); } - if(ifExit){ + if(ifExit && anim==null){ mFrameTv.setVisibility(0); mImgTv.setVisibility(0); - Animation anim = AnimationUtils.loadAnimation( + anim = AnimationUtils.loadAnimation( MainActivity.this, R.anim.tv_off); anim.setAnimationListener(new tvOffAnimListener()); mImgTv.startAnimation(anim);