We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f293398 commit 02763ecCopy full SHA for 02763ec
nativescript-core/ui/core/view/view.android.ts
@@ -829,6 +829,11 @@ export class View extends ViewCommon {
829
stateListAnimator.addState([statePressed, stateEnabled], pressedSet);
830
stateListAnimator.addState([stateEnabled], notPressedSet);
831
stateListAnimator.addState([], defaultSet);
832
+
833
+ const currentAnimator = nativeView.getStateListAnimator();
834
+ if (currentAnimator) {
835
+ currentAnimator.jumpToCurrentState();
836
+ }
837
nativeView.setStateListAnimator(stateListAnimator);
838
}
839
0 commit comments