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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user