@Override
  public void setKeyboardTheme(@NonNull KeyboardTheme theme) {
    super.setKeyboardTheme(theme);

    mExtensionKeyboardYDismissPoint = getThemedKeyboardDimens().getNormalKeyHeight();

    mGestureDrawingHelper =
        GestureTypingPathDrawHelper.create(
            this::invalidate,
            GestureTrailTheme.fromThemeResource(
                getContext(),
                theme.getPackageContext(),
                theme.getResourceMapping(),
                theme.getGestureTrailThemeResId()));
  }
@Test
  public void testMinimumPadding() {
    final Resources resources = mViewUnderTest.getContext().getResources();
    final int minimumBottomPadding =
        resources.getDimensionPixelOffset(R.dimen.watermark_margin)
            + resources.getDimensionPixelOffset(R.dimen.watermark_size);
    Assert.assertTrue(
        "Expected minimumBottomPadding to be larger than 1, but is " + minimumBottomPadding,
        1 < minimumBottomPadding);

    AnyApplication.getKeyboardThemeFactory(mViewUnderTest.getContext())
        .getEnabledAddOns()
        .forEach(
            keyboardTheme -> {
              mViewUnderTest.setKeyboardTheme(keyboardTheme);
              Assert.assertSame(keyboardTheme, mViewUnderTest.getLastSetKeyboardTheme());
              Assert.assertTrue(mViewUnderTest.getPaddingBottom() >= minimumBottomPadding);
            });
  }