Skip to content

Commit

Permalink
jcenter integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Cutta committed Jul 29, 2016
1 parent 8348bde commit 5e4bd22
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class GifView extends View {
private long mMovieStart;
private int mCurrentAnimationTime;


/**
* Position for drawing animation frames in the center of the view.
*/
Expand Down Expand Up @@ -160,7 +161,7 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
}

/*
* calculate overall scale
* calculate overall scale
*/
mScale = 1f / Math.max(scaleH, scaleW);

Expand All @@ -180,7 +181,6 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
super.onLayout(changed, l, t, r, b);

/*
* Calculate mLeft / mTop for drawing in center
*/
Expand Down

0 comments on commit 5e4bd22

Please sign in to comment.