@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 testDisregardIfSameTheme() {
    final KeyboardThemeFactory keyboardThemeFactory =
        AnyApplication.getKeyboardThemeFactory(getApplicationContext());
    Assert.assertTrue(mThemeWasSet);
    mThemeWasSet = false;
    mViewUnderTest.setKeyboardTheme(keyboardThemeFactory.getAllAddOns().get(2));
    Assert.assertTrue(mThemeWasSet);
    mThemeWasSet = false;
    mViewUnderTest.setKeyboardTheme(keyboardThemeFactory.getAllAddOns().get(2));
    Assert.assertFalse(mThemeWasSet);

    mViewUnderTest.setKeyboardTheme(keyboardThemeFactory.getAllAddOns().get(3));
    Assert.assertTrue(mThemeWasSet);
  }