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

Commit 5d44b8fe authored by Darrell Shi's avatar Darrell Shi
Browse files

Update complications layout.

- move clock time complication to up left corner above smartspace
- move home controls to the left of cast

Bug: 239090303
Test: manually on device

Change-Id: I605cad1c4e92f9d2e6756c805e1d4ce81a8f42b0
parent c820f5af
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -44,9 +44,9 @@ public interface RegisteredComplicationsModule {
    String DREAM_SMARTSPACE_LAYOUT_PARAMS = "smartspace_layout_params";
    String DREAM_HOME_CONTROLS_CHIP_LAYOUT_PARAMS = "home_controls_chip_layout_params";

    int DREAM_CLOCK_TIME_COMPLICATION_WEIGHT = 0;
    int DREAM_CLOCK_TIME_COMPLICATION_WEIGHT = 1;
    int DREAM_SMARTSPACE_COMPLICATION_WEIGHT = 0;
    int DREAM_HOME_CONTROLS_CHIP_COMPLICATION_WEIGHT = 0;
    int DREAM_HOME_CONTROLS_CHIP_COMPLICATION_WEIGHT = 1;

    /**
     * Provides layout parameters for the clock time complication.
@@ -56,9 +56,9 @@ public interface RegisteredComplicationsModule {
    static ComplicationLayoutParams provideClockTimeLayoutParams() {
        return new ComplicationLayoutParams(0,
            ViewGroup.LayoutParams.WRAP_CONTENT,
            ComplicationLayoutParams.POSITION_BOTTOM
            ComplicationLayoutParams.POSITION_TOP
                    | ComplicationLayoutParams.POSITION_START,
            ComplicationLayoutParams.DIRECTION_UP,
            ComplicationLayoutParams.DIRECTION_DOWN,
            DREAM_CLOCK_TIME_COMPLICATION_WEIGHT);
    }