@@ -161,7 +161,8 @@ public GestureImageView(Context context, @Nullable AttributeSet attrs) {
161
161
162
162
public GestureImageView (Context context , @ Nullable AttributeSet attrs , int defStyleAttr ) {
163
163
super (context , attrs , defStyleAttr );
164
- TypedArray ta = context .obtainStyledAttributes (attrs , R .styleable .GestureImageView , defStyleAttr , 0 );
164
+ TypedArray ta = context .obtainStyledAttributes (
165
+ attrs , R .styleable .GestureImageView , defStyleAttr , 0 );
165
166
setImageGesturesEnabled (ta .getBoolean (R .styleable
166
167
.GestureImageView_imageGesturesEnabled , true ));
167
168
setMoveUnmagnifiedImageViaSingleFingerAllowed (ta .getBoolean (R .styleable
@@ -298,8 +299,9 @@ private void initializeImage() {
298
299
final boolean piiic = mFitWidthImageScale >= mFitCenterImageScale * PIIIC_THRESHOLD ;
299
300
if (piiic ) {
300
301
mDoubleTapMagnifiedImageScale = mFitWidthImageScale ;
301
- // Make sure the mImageMaxScale is not less than 3 times that of mDoubleTapMagnifiedImageScale,
302
- // preferring to have the maximum scale for the image 5 times larger than mFitCenterImageScale.
302
+ // Make sure the mImageMaxScale is not less than 3 times that of
303
+ // mDoubleTapMagnifiedImageScale, preferring to have the maximum scale for the image
304
+ // 5 times larger than mFitCenterImageScale.
303
305
if (mImageMaxScale < mDoubleTapMagnifiedImageScale * 3f ) {
304
306
mImageMaxScale = mDoubleTapMagnifiedImageScale * 3f ;
305
307
}
@@ -311,7 +313,8 @@ private void initializeImage() {
311
313
// so just reset the current matrix to its initial state.
312
314
mImageMatrix .reset ();
313
315
if (piiic ) {
314
- // Scales the image to fit exactly the width of the view with the top edge showed to the user
316
+ // Scales the image to fit exactly the width of the view with the top edge showed
317
+ // to the user
315
318
mImageMatrix .postScale (mFitWidthImageScale , mFitWidthImageScale , 0 , 0 );
316
319
} else {
317
320
// Translates the image to the center of the current view
0 commit comments