aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-09-01 13:59:17 +0200
committerVincent Breitmoser <valodim@mugenguild.com>2015-09-01 13:59:17 +0200
commit676b39354212eed3dcb40399c670bd721e5c753c (patch)
tree69e9cb65c0a4f14c38413c939cd0c707ca77edd4 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain
parent1b3f70073ae81a7aee5e6fca3f021bfcfe2065fe (diff)
downloadopen-keychain-676b39354212eed3dcb40399c670bd721e5c753c.tar.gz
open-keychain-676b39354212eed3dcb40399c670bd721e5c753c.tar.bz2
open-keychain-676b39354212eed3dcb40399c670bd721e5c753c.zip
statusindicator: don't redisplay child with animation if already shown
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/StatusIndicator.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/StatusIndicator.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/StatusIndicator.java
index bef40d57c..11fdb5df4 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/StatusIndicator.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/StatusIndicator.java
@@ -27,4 +27,10 @@ public class StatusIndicator extends ToolableViewAnimator {
setOutAnimation(AnimationUtils.loadAnimation(context, R.anim.fade_out));
}
+ @Override
+ public void setDisplayedChild(int whichChild) {
+ if (whichChild != getDisplayedChild()) {
+ super.setDisplayedChild(whichChild);
+ }
+ }
}