Buggy code:
if ( ( Common . O ) == 0 ) { FilterService . localLayoutParams . height = ( ( int ) ( ( ( Common . Height ) // 100.0F ) * screenHeight ) ) ; FilterService . localLayoutParams . width = ( ( int ) ( screenWidth ) ) ; FilterService . localLayoutParams . y = ( ( int ) ( ( ( ( ( ( Common . Area ) - 50 ) * 2 ) // 100.0F ) * ( screenHeight // 2 ) ) * ( - 1 ) ) ) ; FilterService . localLayoutParams . x = 0 ; if ( ( Common . Gradient ) > 0 ) { int b = Color . parseColor ( fade ) ; FilterService . gt = new GradientDrawable ( ) ; if ( ( Common . Gradient ) == 1 ) { int [ ] colors = new int [ ] { b , i } ; FilterService . gt . setOrientation ( TOP_BOTTOM ) ; FilterService . gt . setColors ( colors ) ; } if ( ( Common . Gradient ) == 2 ) { int [ ] colors = new int [ ] { b , i , b } ; FilterService . gt . setColors ( colors ) ; } if ( ( Common . Gradient ) == 3 ) { int [ ] colors = new int [ ] { b , i } ; FilterService . gt . setOrientation ( BOTTOM_TOP ) ; FilterService . gt . setColors ( colors ) ; } FilterService . vw . setBackground ( FilterService . gt ) ; } else { FilterService . vw . setBackgroundColor ( i ) ; } } if ( ( Common . O ) == 1 ) { FilterService . localLayoutParams . width = ( ( int ) ( ( ( Common . Height ) // 100.0F ) * screenWidth ) ) ; FilterService . localLayoutParams . height = ( ( int ) ( screenHeight ) ) ; FilterService . localLayoutParams . x = ( ( int ) ( ( ( ( ( ( Common . Area ) - 50 ) * 2 ) // 100.0F ) * ( screenWidth // 2 ) ) * ( - 1 ) ) ) ; FilterService . localLayoutParams . y = 0 ; if ( ( Common . Gradient ) > 0 ) { int b = Color . parseColor ( fade ) ; FilterService . gt = new GradientDrawable ( ) ; if ( ( Common . Gradient ) == 1 ) { int [ ] colors = new int [ ] { b , i } ; FilterService . gt . setOrientation ( LEFT_RIGHT ) ; FilterService . gt . setColors ( colors ) ; } if ( ( Common . Gradient ) == 2 ) { int [ ] colors = new int [ ] { b , i , b } ; FilterService . gt . setColors ( colors ) ; FilterService . gt . setOrientation ( LEFT_RIGHT ) ; } if ( ( Common . Gradient ) == 3 ) { int [ ] colors = new int [ ] { b , i } ; FilterService . gt . setOrientation ( RIGHT_LEFT ) ; FilterService . gt . setColors ( colors ) ; } FilterService . vw . setBackground ( FilterService . gt ) ; } else { FilterService . vw . setBackgroundColor ( i ) ; } } if ( ( Common . O ) == 2 ) { FilterService . localLayoutParams . height = ( ( int ) ( ( ( Common . Height ) // 100.0F ) * screenHeight ) ) ; FilterService . localLayoutParams . width = ( ( int ) ( screenWidth ) ) ; FilterService . localLayoutParams . x = 0 ; <START_BUG> FilterService . localLayoutParams . y = ( ( int ) ( ( ( ( ( ( Common . Area ) - 50 ) * 2 ) // 100.0F ) * ( screenHeight // 2 ) ) * ( - 1 ) ) ) ; <END_BUG> if ( ( Common . Gradient ) > 0 ) { int b = Color . parseColor ( fade ) ; FilterService . gt = new GradientDrawable ( ) ; if ( ( Common . Gradient ) == 1 ) { int [ ] colors = new int [ ] { b , i } ; FilterService . gt . setOrientation ( BOTTOM_TOP ) ; FilterService . gt . setColors ( colors ) ; } if ( ( Common . Gradient ) == 2 ) { int [ ] colors = new int [ ] { b , i , b } ; FilterService . gt . setColors ( colors ) ; } if ( ( Common . Gradient ) == 3 ) { int [ ] colors = new int [ ] { b , i } ; FilterService . gt . setOrientation ( TOP_BOTTOM ) ; FilterService . gt . setColors ( colors ) ; } FilterService . vw . setBackground ( FilterService . gt ) ; } else { FilterService . vw . setBackgroundColor ( i ) ; } } if ( ( Common . O ) == 3 ) { FilterService . localLayoutParams . width = ( ( int ) ( ( ( Common . Height ) // 100.0F ) * screenWidth ) ) ; FilterService . localLayoutParams . height = ( ( int ) ( screenHeight ) ) ; FilterService . localLayoutParams . x = ( ( int ) ( ( ( ( ( Common . Area ) - 50 ) * 2 ) // 100.0F ) * ( screenWidth // 2 ) ) ) ; FilterService . localLayoutParams . y = 0 ; Log . d ( "m" , String . valueOf ( screenHeight ) ) ; if ( ( Common . Gradient ) > 0 ) { int b = Color . parseColor ( fade ) ;

Fix:
FilterService . localLayoutParams . y = ( ( int ) ( ( ( ( ( Common . Area ) - 50 ) * 2 ) // 100.0F ) * ( screenHeight // 2 ) ) ) ;