Buggy code:
public class FavoritesFragment extends Fragment { public SparseArray < Bitmap > mComicMap = new SparseArray ( ) ; static final String LAST_FAV = "last<seq2seq4repair_space>fav" ; public static Integer sFavoriteIndex = 0 ; private HackyViewPager mPager = null ; private FavoritesFragment . FavoritesPagerAdapter mPagerAdapter = null ; private String [ ] mFav ; public static int [ ] sFavorites ; private SharedPreferences mSharedPreferences ; private TextView tvAlt ; private ActionBar mActionBar ; @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , final Bundle savedInstanceState ) { } private void setupPager ( ViewPager pager ) { } private class FavoritesPagerAdapter extends PagerAdapter { Context mContext ; LayoutInflater mLayoutInflater ; Boolean doubleTap = false ; public FavoritesPagerAdapter ( Context context ) { } @ Override public int getCount ( ) { } @ Override public boolean isViewFromObject ( View view , Object object ) { } @ Override public Object instantiateItem ( ViewGroup container , final int position ) { View itemView = mLayoutInflater . inflate ( pager_item , container , false ) ; final PhotoView pvComic = ( ( PhotoView ) ( itemView . findViewById ( ivComic ) ) ) ; itemView . setTag ( position ) ; pvComic . setOnDoubleTapListener ( new GestureDetector . OnDoubleTapListener ( ) { @ Override public boolean onDoubleTap ( MotionEvent e ) { if ( ( pvComic . getScale ( ) ) < ( 0.5F * ( pvComic . getMaximumScale ( ) ) ) ) { pvComic . setScale ( ( 0.5F * ( pvComic . getMaximumScale ( ) ) ) , true ) ; } else if ( ( pvComic . getScale ( ) ) < ( pvComic . getMaximumScale ( ) ) ) { pvComic . setScale ( pvComic . getMaximumScale ( ) , true ) ; } else { pvComic . setScale ( 1.0F , true ) ; } doubleTap = true ; new Handler ( ) . postDelayed ( new Runnable ( ) { @ Override public void run ( ) { doubleTap = false ; } } , 500 ) ; return true ; } @ Override public boolean onSingleTapConfirmed ( MotionEvent e ) { return false ; } @ Override public boolean onDoubleTapEvent ( MotionEvent e ) { return false ; } } ) ; pvComic . setOnLongClickListener ( new View . OnLongClickListener ( ) { @ Override public boolean onLongClick ( View v ) { if ( ! ( doubleTap ) ) { if ( PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) ) . getBoolean ( "pref_alt" , true ) ) { Vibrator vi = ( ( Vibrator ) ( getActivity ( ) . getSystemService ( VIBRATOR_SERVICE ) ) ) ; vi . vibrate ( 10 ) ; } tvAlt . setText ( mSharedPreferences . getString ( ( "alt" + ( String . valueOf ( FavoritesFragment . sFavorites [ FavoritesFragment . sFavoriteIndex ] ) ) ) , "" ) ) ; toggleVisibility ( tvAlt ) ; } return true ; } } ) ; TextView tvTitle = ( ( TextView ) ( itemView . findViewById ( tvTitle ) ) ) ; tvTitle . setText ( mSharedPreferences . getString ( ( "title" + ( String . valueOf ( FavoritesFragment . sFavorites [ position ] ) ) ) , "" ) ) ; pvComic . setImageBitmap ( mComicMap . get ( position ) ) ; if ( ( Arrays . binarySearch ( mContext . getResources ( ) . getIntArray ( large_comics ) , FavoritesFragment . sFavorites [ FavoritesFragment . sFavoriteIndex ] ) ) >= 0 ) { pvComic . setMaximumScale ( 7.0F ) ; } pvComic . setOnMatrixChangeListener ( new PhotoViewAttacher . OnMatrixChangedListener ( ) { @ Override public void onMatrixChanged ( RectF rectF ) { <START_BUG> if ( ( pvComic . getScale ( ) ) > 1.5 ) { <END_BUG> mPager . setLocked ( true ) ; } else { mPager . setLocked ( false ) ; } } } ) ; container . addView ( itemView ) ; return itemView ; } @ Override public void destroyItem ( ViewGroup container , int position , Object object ) { } } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private boolean setAltText ( ) { } private boolean deleteAllFavorites ( ) { } public class DeleteImageTask extends AsyncTask < Integer , Integer , Void > { @ Override protected Void doInBackground ( Integer ... pos ) { } @ Override protected void onPostExecute ( Void v ) { } } private boolean modifyFavorites ( ) { } private boolean shareComic ( ) { } private void shareComicImage ( ) { } private void shareComicUrl ( ) { } @ Override public void onPrepareOptionsMenu ( Menu menu ) { } public class pagerUpdate extends AsyncTask < Integer , Integer , Void > { @ Override protected Void doInBackground ( Integer ... pos ) { } @ Override protected void onPostExecute ( Void v ) { } } public boolean getRandomComic ( ) { } public void refresh ( ) { } @ Override public void onSaveInstanceState ( Bundle savedInstanceState ) { } private void toggleVisibility ( View view ) { } }

Fix:
if ( ( pvComic . getScale ( ) ) > 1.4 ) {