Merge "Fix clipping of an app badge on bubbles in overflow" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a6e03b009c
@@ -30,7 +30,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:gravity="center"/>
|
android:gravity="center"
|
||||||
|
android:clipChildren="false"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/bubble_overflow_empty_state"
|
android:id="@+id/bubble_overflow_empty_state"
|
||||||
|
|||||||
@@ -887,7 +887,9 @@ public class BubbleExpandedView extends LinearLayout {
|
|||||||
mTaskView.onLocationChanged();
|
mTaskView.onLocationChanged();
|
||||||
}
|
}
|
||||||
if (mIsOverflow) {
|
if (mIsOverflow) {
|
||||||
mOverflowView.show();
|
post(() -> {
|
||||||
|
mOverflowView.show();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -167,7 +167,10 @@ public class BubbleOverflowContainerView extends LinearLayout {
|
|||||||
|
|
||||||
void updateOverflow() {
|
void updateOverflow() {
|
||||||
Resources res = getResources();
|
Resources res = getResources();
|
||||||
final int columns = res.getInteger(R.integer.bubbles_overflow_columns);
|
int columns = (int) Math.round(getWidth()
|
||||||
|
/ (res.getDimension(R.dimen.bubble_name_width)));
|
||||||
|
columns = columns > 0 ? columns : res.getInteger(R.integer.bubbles_overflow_columns);
|
||||||
|
|
||||||
mRecyclerView.setLayoutManager(
|
mRecyclerView.setLayoutManager(
|
||||||
new OverflowGridLayoutManager(getContext(), columns));
|
new OverflowGridLayoutManager(getContext(), columns));
|
||||||
if (mRecyclerView.getItemDecorationCount() == 0) {
|
if (mRecyclerView.getItemDecorationCount() == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user