Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
Fixed chat fade animation
Browse files Browse the repository at this point in the history
  • Loading branch information
markhaehnel committed Feb 27, 2016
1 parent 76fd75a commit 28eea53
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ public static Animation getDelayedFadeOutAnimation() {
public static Animation getTransparentFadeInAnimation() {
AlphaAnimation anim = new AlphaAnimation(0.0f, 0.75f);
anim.setDuration(500);
anim.setFillAfter(true);
return anim;
}

public static Animation getTransparentFadeOutAnimation() {
AlphaAnimation anim = new AlphaAnimation(0.75f, 0.0f);
anim.setDuration(500);
anim.setFillAfter(true);
return anim;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private void toggleChat() {
WebView chat = (WebView)findViewById(R.id.webViewChat);
if (chat.getVisibility() == View.VISIBLE) {
chat.setVisibility(View.INVISIBLE);
chat.setAnimation(AnimationBuilder.getFadeOutAnimation());
chat.setAnimation(AnimationBuilder.getTransparentFadeOutAnimation());
} else {
chat.setVisibility(View.VISIBLE);
chat.setAnimation(AnimationBuilder.getTransparentFadeInAnimation());
Expand Down

0 comments on commit 28eea53

Please sign in to comment.