Loading src/com/android/launcher3/Hotseat.java +9 −3 Original line number Diff line number Diff line Loading @@ -173,9 +173,15 @@ public class Hotseat extends CellLayout implements Insettable { protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int width = mActivity.getDeviceProfile().isQsbInline ? mActivity.getDeviceProfile().qsbWidth : getShortcutsAndWidgets().getMeasuredWidth(); int width; if (mActivity.getDeviceProfile().isQsbInline) { width = mActivity.getDeviceProfile().qsbWidth; } else { MarginLayoutParams qsbParams = (MarginLayoutParams) mQsb.getLayoutParams(); width = getShortcutsAndWidgets().getMeasuredWidth() - qsbParams.getMarginStart() - qsbParams.getMarginEnd(); } mQsb.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(mQsbHeight, MeasureSpec.EXACTLY)); Loading Loading
src/com/android/launcher3/Hotseat.java +9 −3 Original line number Diff line number Diff line Loading @@ -173,9 +173,15 @@ public class Hotseat extends CellLayout implements Insettable { protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int width = mActivity.getDeviceProfile().isQsbInline ? mActivity.getDeviceProfile().qsbWidth : getShortcutsAndWidgets().getMeasuredWidth(); int width; if (mActivity.getDeviceProfile().isQsbInline) { width = mActivity.getDeviceProfile().qsbWidth; } else { MarginLayoutParams qsbParams = (MarginLayoutParams) mQsb.getLayoutParams(); width = getShortcutsAndWidgets().getMeasuredWidth() - qsbParams.getMarginStart() - qsbParams.getMarginEnd(); } mQsb.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(mQsbHeight, MeasureSpec.EXACTLY)); Loading