Merge "Fix the wrong number of icons in shelf for RTL" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8861d33dec
@@ -536,7 +536,8 @@ public class NotificationIconContainer extends AlphaOptimizedFrameLayout {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int translation = (int) (mLastVisibleIconState.xTranslation + mIconSize);
|
int translation = (int) (isLayoutRtl() ? getWidth() - mLastVisibleIconState.xTranslation
|
||||||
|
: mLastVisibleIconState.xTranslation + mIconSize);
|
||||||
// There's a chance that last translation goes beyond the edge maybe
|
// There's a chance that last translation goes beyond the edge maybe
|
||||||
return Math.min(getWidth(), translation);
|
return Math.min(getWidth(), translation);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user