Loading core/java/com/android/internal/widget/SizeAdaptiveLayout.java +12 −7 Original line number Diff line number Diff line Loading @@ -121,6 +121,12 @@ public class SizeAdaptiveLayout extends ViewGroup { mTransitionAnimation.addListener(mAnimatorListener); } @Override public void setLayoutDirection(int layoutDirection) { super.setLayoutDirection(layoutDirection); mModestyPanel.setLayoutDirection(layoutDirection); } /** * Visible for testing * @hide Loading Loading @@ -225,14 +231,12 @@ public class SizeAdaptiveLayout extends ViewGroup { if (unboundedView != null) { tallestView = unboundedView; } if (heightMode == MeasureSpec.UNSPECIFIED) { return tallestView; } if (heightSize > tallestViewSize) { if (heightMode == MeasureSpec.UNSPECIFIED || heightSize > tallestViewSize) { return tallestView; } } else { return smallestView; } } @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { Loading @@ -242,6 +246,7 @@ public class SizeAdaptiveLayout extends ViewGroup { View.MeasureSpec.EXACTLY); mActiveChild = selectActiveChild(measureSpec); mActiveChild.setVisibility(View.VISIBLE); mActiveChild.setLayoutDirection(getLayoutDirection()); if (mLastActive != mActiveChild && mLastActive != null) { if (DEBUG) Log.d(TAG, this + " changed children from: " + mLastActive + Loading Loading @@ -272,10 +277,10 @@ public class SizeAdaptiveLayout extends ViewGroup { final int childWidth = mActiveChild.getMeasuredWidth(); final int childHeight = mActiveChild.getMeasuredHeight(); // TODO investigate setting LAYER_TYPE_HARDWARE on mLastActive mActiveChild.layout(0, 0, 0 + childWidth, 0 + childHeight); mActiveChild.layout(0, 0, childWidth, childHeight); if (DEBUG) Log.d(TAG, "got modesty offset of " + mModestyPanelTop); mModestyPanel.layout(0, mModestyPanelTop, 0 + childWidth, mModestyPanelTop + childHeight); mModestyPanel.layout(0, mModestyPanelTop, childWidth, mModestyPanelTop + childHeight); } @Override Loading packages/SystemUI/AndroidManifest.xml +2 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,8 @@ android:allowBackup="false" android:hardwareAccelerated="true" android:label="@string/app_label" android:icon="@*android:drawable/platlogo"> android:icon="@*android:drawable/platlogo" android:supportsRtl="true"> <!-- Broadcast receiver that gets the broadcast at boot time and starts up everything else. Loading packages/SystemUI/res/drawable-ldrtl-hdpi/ic_notifications_normal.png 0 → 100644 +367 B Loading image diff... packages/SystemUI/res/drawable-ldrtl-hdpi/ic_notify_clear_normal.png 0 → 100644 +550 B Loading image diff... packages/SystemUI/res/drawable-ldrtl-hdpi/ic_notify_clear_pressed.png 0 → 100644 +983 B Loading image diff... Loading
core/java/com/android/internal/widget/SizeAdaptiveLayout.java +12 −7 Original line number Diff line number Diff line Loading @@ -121,6 +121,12 @@ public class SizeAdaptiveLayout extends ViewGroup { mTransitionAnimation.addListener(mAnimatorListener); } @Override public void setLayoutDirection(int layoutDirection) { super.setLayoutDirection(layoutDirection); mModestyPanel.setLayoutDirection(layoutDirection); } /** * Visible for testing * @hide Loading Loading @@ -225,14 +231,12 @@ public class SizeAdaptiveLayout extends ViewGroup { if (unboundedView != null) { tallestView = unboundedView; } if (heightMode == MeasureSpec.UNSPECIFIED) { return tallestView; } if (heightSize > tallestViewSize) { if (heightMode == MeasureSpec.UNSPECIFIED || heightSize > tallestViewSize) { return tallestView; } } else { return smallestView; } } @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { Loading @@ -242,6 +246,7 @@ public class SizeAdaptiveLayout extends ViewGroup { View.MeasureSpec.EXACTLY); mActiveChild = selectActiveChild(measureSpec); mActiveChild.setVisibility(View.VISIBLE); mActiveChild.setLayoutDirection(getLayoutDirection()); if (mLastActive != mActiveChild && mLastActive != null) { if (DEBUG) Log.d(TAG, this + " changed children from: " + mLastActive + Loading Loading @@ -272,10 +277,10 @@ public class SizeAdaptiveLayout extends ViewGroup { final int childWidth = mActiveChild.getMeasuredWidth(); final int childHeight = mActiveChild.getMeasuredHeight(); // TODO investigate setting LAYER_TYPE_HARDWARE on mLastActive mActiveChild.layout(0, 0, 0 + childWidth, 0 + childHeight); mActiveChild.layout(0, 0, childWidth, childHeight); if (DEBUG) Log.d(TAG, "got modesty offset of " + mModestyPanelTop); mModestyPanel.layout(0, mModestyPanelTop, 0 + childWidth, mModestyPanelTop + childHeight); mModestyPanel.layout(0, mModestyPanelTop, childWidth, mModestyPanelTop + childHeight); } @Override Loading
packages/SystemUI/AndroidManifest.xml +2 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,8 @@ android:allowBackup="false" android:hardwareAccelerated="true" android:label="@string/app_label" android:icon="@*android:drawable/platlogo"> android:icon="@*android:drawable/platlogo" android:supportsRtl="true"> <!-- Broadcast receiver that gets the broadcast at boot time and starts up everything else. Loading
packages/SystemUI/res/drawable-ldrtl-hdpi/ic_notifications_normal.png 0 → 100644 +367 B Loading image diff...
packages/SystemUI/res/drawable-ldrtl-hdpi/ic_notify_clear_normal.png 0 → 100644 +550 B Loading image diff...
packages/SystemUI/res/drawable-ldrtl-hdpi/ic_notify_clear_pressed.png 0 → 100644 +983 B Loading image diff...