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

Commit e46fd73b authored by Xiaowen Lei's avatar Xiaowen Lei
Browse files

Add SmartspaceView.setHorizontalPaddings.

This is needed so that Launcher can configure this horizontal padding
dynamically.

Flag: EXEMPT bugfix
Bug: 382345130
Test: N/A. Only add method to interface. Compiles and existing tests.
Change-Id: Id575904ea2f63a3ea199f2c170cca72b3e5cd42f
parent 26ab8de1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -111,6 +111,8 @@ class CommunalSmartspaceControllerTest : SysuiTestCase() {
        override fun getCurrentCardTopPadding(): Int {
            return 0
        }

        override fun setHorizontalPaddings(horizontalPadding: Int) {}
    }

    @Before
+2 −0
Original line number Diff line number Diff line
@@ -127,6 +127,8 @@ class DreamSmartspaceControllerTest : SysuiTestCase() {
        override fun getCurrentCardTopPadding(): Int {
            return 0
        }

        override fun setHorizontalPaddings(horizontalPadding: Int) {}
    }

    @Before
+3 −0
Original line number Diff line number Diff line
@@ -1109,6 +1109,9 @@ class LockscreenSmartspaceControllerTest : SysuiTestCase() {
            override fun getCurrentCardTopPadding(): Int {
                return 0
            }

            override fun setHorizontalPaddings(horizontalPadding: Int) {
            }
        })
    }
}
+7 −0
Original line number Diff line number Diff line
@@ -213,6 +213,13 @@ public interface BcSmartspaceDataPlugin extends Plugin {
        default int getCurrentCardTopPadding() {
            throw new UnsupportedOperationException("Not implemented by " + getClass());
        }

        /**
         * Set the horizontal paddings for applicable children inside the SmartspaceView.
         */
        default void setHorizontalPaddings(int horizontalPadding) {
            throw new UnsupportedOperationException("Not implemented by " + getClass());
        }
    }

    /** Interface for launching Intents, which can differ on the lockscreen */