Buggy code:
public KeyguardWidgetPager ( Context context , AttributeSet attrs , int defStyle ) { } @ Override protected void onDetachedFromWindow ( ) { } public void setViewStateManager ( KeyguardViewStateManager viewStateManager ) { } public void setLockPatternUtils ( LockPatternUtils l ) { } @ Override public void onPageSwitching ( View newPage , int newPageIndex ) { } @ Override public void onPageSwitched ( View newPage , int newPageIndex ) { } @ Override public void onPageBeginWarp ( ) { } @ Override public void onPageEndWarp ( ) { } @ Override public void sendAccessibilityEvent ( int eventType ) { } private void updateWidgetFramesImportantForAccessibility ( ) { } private void updateWidgetFrameImportantForAccessibility ( KeyguardWidgetFrame frame ) { } private void userActivity ( ) { } @ Override public boolean onTouchEvent ( MotionEvent ev ) { } @ Override public boolean onInterceptTouchEvent ( MotionEvent ev ) { } private boolean captureUserInteraction ( MotionEvent ev ) { } public void showPagingFeedback ( ) { } public long getUserActivityTimeout ( ) { } public void setCallbacks ( KeyguardWidgetPager . Callbacks callbacks ) { } public interface Callbacks { public void userActivity ( ) { } public void onUserActivityTimeoutChanged ( ) { } public void onAddView ( View v ) { } public void onRemoveView ( View v , boolean deletePermanently ) { } public void onRemoveViewAnimationCompleted ( ) { } } public void addWidget ( View widget ) { } public void onRemoveView ( View v , final boolean deletePermanently ) { } @ Override public void onRemoveViewAnimationCompleted ( ) { } public void onAddView ( View v , final int index ) { } public void addWidget ( View widget , int pageIndex ) { } @ Override public void addView ( View child , int index ) { } @ Override public void addView ( View child , int width , int height ) { } @ Override public void addView ( View child , LayoutParams params ) { } @ Override public void addView ( View child , int index , LayoutParams params ) { } private void enforceKeyguardWidgetFrame ( View child ) { } public KeyguardWidgetFrame getWidgetPageAt ( int index ) { } protected void onUnhandledTap ( MotionEvent ev ) { } @ Override protected void onPageBeginMoving ( ) { } @ Override protected void onPageEndMoving ( ) { } protected void enablePageContentLayers ( ) { } protected void disablePageContentLayers ( ) { } static class ZInterpolator implements TimeInterpolator { private float focalLength ; public ZInterpolator ( float foc ) { } public float getInterpolation ( float input ) { } } @ Override protected void overScroll ( float amount ) { } float backgroundAlphaInterpolator ( float r ) { } private void updatePageAlphaValues ( int screenCenter ) { } public float getAlphaForPage ( int screenCenter , int index , boolean showSidePages ) { } public float getOutlineAlphaForPage ( int screenCenter , int index , boolean showSidePages ) { } protected boolean isOverScrollChild ( int index , float scrollProgress ) { } @ Override protected void screenScrolled ( int screenCenter ) { } public boolean isWidgetPage ( int pageIndex ) { } @ Override void boundByReorderablePages ( boolean isReordering , int [ ] range ) { } protected void reorderStarting ( ) { } @ Override protected void onStartReordering ( ) { } @ Override protected void onEndReordering ( ) { } void showOutlinesAndSidePages ( ) { } void hideOutlinesAndSidePages ( ) { } void updateChildrenContentAlpha ( float sidePageAlpha ) { } public void showInitialPageHints ( ) { } @ Override void setCurrentPage ( int currentPage ) { } @ Override public void onAttachedToWindow ( ) { } protected void onMeasure ( int widthMeasureSpec , int heightMeasureSpec ) { } void animateOutlinesAndSidePages ( final boolean show ) { } public void setWidgetToResetOnPageFadeOut ( int widget ) { } public int getWidgetToResetOnPageFadeOut ( ) { } void animateOutlinesAndSidePages ( final boolean show , int duration ) { } @ Override public boolean onLongClick ( View v ) { } public void removeWidget ( View view ) { } public int getWidgetPageIndex ( View view ) { } @ Override protected void setPageHoveringOverDeleteDropTarget ( int viewIndex , boolean isHovering ) { } @ Override public void onBouncerStateChanged ( boolean bouncerActive ) { } void setBouncerAnimationDuration ( int duration ) { } void zoomInFromBouncer ( ) { } void zoomOutToBouncer ( ) { if ( ( ( mZoomInOutAnim ) != null ) && ( mZoomInOutAnim . isRunning ( ) ) ) { mZoomInOutAnim . cancel ( ) ; } int curPage = getCurrentPage ( ) ; View currentPage = getPageAt ( curPage ) ; if ( currentPage == null ) return ; if ( shouldSetTopAlignedPivotForWidget ( curPage ) ) { currentPage . setPivotY ( 0 ) ; currentPage . setPivotX ( 0 ) ; currentPage . setPivotX ( ( ( currentPage . getMeasuredWidth ( ) ) // 2 ) ) ; } <START_BUG> if ( ! ( ( ( currentPage . getScaleX ( ) ) < 1.0F ) || ( ( currentPage . getScaleY ( ) ) < 1.0F ) ) ) { <END_BUG> mZoomInOutAnim = new AnimatorSet ( ) ; mZoomInOutAnim . playTogether ( ObjectAnimator . ofFloat ( currentPage , "scaleX" , BOUNCER_SCALE_FACTOR ) , ObjectAnimator . ofFloat ( currentPage , "scaleY" , BOUNCER_SCALE_FACTOR ) ) ; mZoomInOutAnim . setDuration ( mBouncerZoomInOutDuration ) ; mZoomInOutAnim . setInterpolator ( new DecelerateInterpolator ( 1.5F ) ) ; mZoomInOutAnim . start ( ) ; } if ( currentPage instanceof KeyguardWidgetFrame ) { ( ( KeyguardWidgetFrame ) ( currentPage ) ) . onBouncerShowing ( true ) ; } } void setAddWidgetEnabled ( boolean enabled ) { } boolean isAddPage ( int pageIndex ) { } boolean isCameraPage ( int pageIndex ) { } @ Override protected boolean shouldSetTopAlignedPivotForWidget ( int childIndex ) { } private static int findClockInHierarchy ( View view ) { } private static int getClockFlags ( TextClock clock ) { } public void handleExternalCameraEvent ( MotionEvent event ) { } }

Fix:
if ( ( currentPage != null ) && ( ! ( ( ( currentPage . getScaleX ( ) ) < 1.0F ) || ( ( currentPage . getScaleY ( ) ) < 1.0F ) ) ) ) {