Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b098ee8 authored by Bryce Lee's avatar Bryce Lee
Browse files

Adjust Smartspace and Media complication positions.

This changelist revises the locations of these two complications.

Bug: 217661151
Test: manual
Change-Id: Ia6d4387e1d1eee53e38410a35473bcb42a10e41f
parent eeea7407
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
        }
    }

+3 −3
Original line number Diff line number Diff line
@@ -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);
        }