Adjust Smartspace and Media complication positions.

This changelist revises the locations of these two complications.

Bug: 217661151
Test: manual
Change-Id: Ia6d4387e1d1eee53e38410a35473bcb42a10e41f
This commit is contained in:
Bryce Lee
2022-02-02 23:15:25 -08:00
parent eeea740723
commit 3b098ee879
2 changed files with 5 additions and 4 deletions

View File

@@ -66,6 +66,7 @@ public class SmartSpaceComplication implements Complication {
}
private static class SmartSpaceComplicationViewHolder implements ViewHolder {
private static final int SMARTSPACE_COMPLICATION_WEIGHT = 10;
private final LockscreenSmartspaceController mSmartSpaceController;
private final Context mContext;
@@ -92,7 +93,7 @@ public class SmartSpaceComplication implements Complication {
return new ComplicationLayoutParams(0, ViewGroup.LayoutParams.WRAP_CONTENT,
ComplicationLayoutParams.POSITION_TOP | ComplicationLayoutParams.POSITION_START,
ComplicationLayoutParams.DIRECTION_DOWN,
0, true);
SMARTSPACE_COMPLICATION_WEIGHT, true);
}
}

View File

@@ -90,9 +90,9 @@ public interface MediaComplicationComponent {
static ComplicationLayoutParams provideLayoutParams() {
return new ComplicationLayoutParams(0,
ViewGroup.LayoutParams.WRAP_CONTENT,
ComplicationLayoutParams.POSITION_BOTTOM
| ComplicationLayoutParams.POSITION_END,
ComplicationLayoutParams.DIRECTION_UP,
ComplicationLayoutParams.POSITION_TOP
| ComplicationLayoutParams.POSITION_START,
ComplicationLayoutParams.DIRECTION_DOWN,
0,
true);
}