Skip to content

Commit

Permalink
Fix dribbble shot FAB showing while loading shot.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbutcher committed Aug 26, 2016
1 parent 2105876 commit 5f7c75b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/io/plaidapp/ui/DribbbleShot.java
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,6 @@ public void onAnimationEnd(Animator animation) {
});
fabMovement.start();

fab.setAlpha(0f);
Animator showFab = ObjectAnimator.ofPropertyValuesHolder(fab,
PropertyValuesHolder.ofFloat(View.ALPHA, 0f, 1f),
PropertyValuesHolder.ofFloat(View.SCALE_X, 0f, 1f),
Expand Down Expand Up @@ -787,7 +786,6 @@ private void checkLiked() {
public void onResponse(Call<Like> call, Response<Like> response) {
// note that like.user will be null here
fab.setChecked(response.body() != null);
fab.jumpDrawablesToCurrentState();
}

@Override
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_dribbble_shot.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
android:layout_gravity="end"
android:layout_marginEnd="@dimen/padding_normal"
android:stateListAnimator="@animator/raise"
android:src="@drawable/asl_fab_heart" />
android:src="@drawable/asl_fab_heart"
android:alpha="0" />

</io.plaidapp.ui.widget.ElasticDragDismissFrameLayout>

0 comments on commit 5f7c75b

Please sign in to comment.