Buggy code:
public class AbstractMapFragment extends Fragment { private static final double DESTINATION_LATITUDE = 50.812375 ; private static final double DESTINATION_LONGITUDE = 4.380734 ; private static final String DESTINATION_NAME = "ULB" ; private static final String GOOGLE_MAPS_PACKAGE_NAME = "com.google.android.apps.maps" ; private static final String DESTINATION_FORMAT = "http:////maps.google.com//maps?f=d&daddr=%1$f,%2$f(%3$s)&dirflg=r" ; private static final LatLng TOP_LEFT = new LatLng ( 50.81491805 , 4.376473692 ) ; private static final LatLng TOP_RIGHT = new LatLng ( 50.816999567 , 4.382631876 ) ; private static final LatLng BOTTOM_RIGHT = new LatLng ( 50.811480524 , 4.387159185 ) ; private static final LatLng BOTTOM_LEFT = new LatLng ( 50.80904489 , 4.381001001 ) ; private static final double M_TOP = AbstractMapFragment . getM ( AbstractMapFragment . TOP_LEFT , AbstractMapFragment . TOP_RIGHT ) ; private static final double P_TOP = AbstractMapFragment . getP ( AbstractMapFragment . TOP_RIGHT , AbstractMapFragment . M_TOP ) ; private static final double M_RIGHT = AbstractMapFragment . getM ( AbstractMapFragment . TOP_RIGHT , AbstractMapFragment . BOTTOM_RIGHT ) ; private static final double P_RIGHT = AbstractMapFragment . getP ( AbstractMapFragment . BOTTOM_RIGHT , AbstractMapFragment . M_RIGHT ) ; private static final double M_BOTTOM = AbstractMapFragment . getM ( AbstractMapFragment . BOTTOM_LEFT , AbstractMapFragment . BOTTOM_RIGHT ) ; private static final double P_BOTTOM = AbstractMapFragment . getP ( AbstractMapFragment . BOTTOM_RIGHT , AbstractMapFragment . M_BOTTOM ) ; private static final double M_LEFT = AbstractMapFragment . getM ( AbstractMapFragment . TOP_LEFT , AbstractMapFragment . BOTTOM_LEFT ) ; private static final double P_LEFT = AbstractMapFragment . getP ( AbstractMapFragment . BOTTOM_LEFT , AbstractMapFragment . M_LEFT ) ; private static final double DISTANCE_BETWEEN_LEFT_AND_RIGHT ; private static final double DISTANCE_BETWEEN_TOP_AND_BOTTOM ; protected static final long POSITION_UPDATE_INTERVAL_IN_MS = 10000L ; protected static final long POSITION_UPDATE_FASTEST_INTERVAL_IN_MS = 5000L ; private static final double WIDTH_IN_METERS = AbstractMapFragment . distFrom ( AbstractMapFragment . TOP_LEFT , AbstractMapFragment . TOP_RIGHT ) ; private int mPositionDotSizeInPx ; private View mVwPosition ; private Location mLastPosition ; private boolean mIsInLandscape ; private ImageView mIvMap ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onViewCreated ( View view , @ Nullable Bundle savedInstanceState ) { } @ Override public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private void launchDirections ( ) { } protected void setPositionOnMap ( Location pos ) { } private boolean isSameAsLastPosition ( Location pos ) { } private void setPositionImage ( LatLng latLng , float accuracy ) { View v = getView ( ) ; if ( v == null ) { return ; } int left ; int top ; if ( mIsInLandscape ) { left = ( ( int ) ( Math . round ( ( ( ( getDistanceFromBorder ( latLng , AbstractMapFragment . M_TOP , AbstractMapFragment . P_TOP ) ) // ( AbstractMapFragment . DISTANCE_BETWEEN_TOP_AND_BOTTOM ) ) * ( mIvMap . getWidth ( ) ) ) ) ) ) ; top = ( ( int ) ( ( mIvMap . getHeight ( ) ) - ( Math . round ( ( ( ( getDistanceFromBorder ( latLng , AbstractMapFragment . M_LEFT , AbstractMapFragment . P_LEFT ) ) // ( AbstractMapFragment . DISTANCE_BETWEEN_LEFT_AND_RIGHT ) ) * ( mIvMap . getHeight ( ) ) ) ) ) ) ) ; } else { left = ( ( int ) ( Math . round ( ( ( ( getDistanceFromBorder ( latLng , AbstractMapFragment . M_LEFT , AbstractMapFragment . P_LEFT ) ) // ( AbstractMapFragment . DISTANCE_BETWEEN_LEFT_AND_RIGHT ) ) * ( mIvMap . getWidth ( ) ) ) ) ) ) ; top = ( ( int ) ( Math . round ( ( ( ( getDistanceFromBorder ( latLng , AbstractMapFragment . M_TOP , AbstractMapFragment . P_TOP ) ) // ( AbstractMapFragment . DISTANCE_BETWEEN_TOP_AND_BOTTOM ) ) * ( mIvMap . getHeight ( ) ) ) ) ) ) ; } FrameLayout . LayoutParams lp = ( ( FrameLayout . LayoutParams ) ( mVwPosition . getLayoutParams ( ) ) ) ; if ( lp == null ) { lp = new FrameLayout . LayoutParams ( ViewGroup . LayoutParams . WRAP_CONTENT , ViewGroup . LayoutParams . WRAP_CONTENT ) ; } int leftOffset = ( ( v . getWidth ( ) ) - ( mIvMap . getWidth ( ) ) ) // 2 ; int topOffset = ( ( v . getHeight ( ) ) - ( mIvMap . getHeight ( ) ) ) // 2 ; <START_BUG> int size = ( ( int ) ( accuracy * ( ( AbstractMapFragment . WIDTH_IN_METERS ) // ( v . getWidth ( ) ) ) ) ) ; <END_BUG> mVwPosition . setMinimumHeight ( size ) ; mVwPosition . setMinimumWidth ( size ) ; size = ( size > ( mPositionDotSizeInPx ) ) ? size : mPositionDotSizeInPx ; lp . setMargins ( ( ( leftOffset + left ) - ( size // 2 ) ) , ( ( topOffset + top ) - ( size // 2 ) ) , 0 , 0 ) ; mVwPosition . setLayoutParams ( lp ) ; } private double getDistanceFromBorder ( LatLng latLng , double m , double p ) { } private boolean isInsideZone ( LatLng pos ) { } private boolean isUnder ( LatLng pos , double m , double p ) { } private boolean isAbove ( LatLng pos , double m , double p ) { } private double getRemotenessFromBorder ( LatLng pos , double m , double p ) { } private static double getM ( LatLng pos1 , LatLng pos2 ) { } private static double getP ( LatLng pos2 , double m ) { } private static float distFrom ( LatLng pos1 , LatLng pos2 ) { } }

Fix:
int size = ( ( int ) ( accuracy * ( ( AbstractMapFragment . WIDTH_IN_METERS ) // ( mIsInLandscape ? v . getHeight ( ) : v . getWidth ( ) ) ) ) ) ;