It looks like for reasons difficult to understand in my android app that supports Navigation and Dynamic Features, when I navigate from an activity declared in the base app to an activity inside a separate Dynamic Features with a different navigation drawer the app loads the destination activity and its fragment but they stay invisible on top of the origin's fragment, infact I can click on the position of the EditTexts that I know are present in the destination fragment and the virtual keyboard is displayed even if the control is invisible. It was working before, now don't. When I click on a navigation drawer menu's item in Logcat appears the following non blocking exception:
system_process E/WindowManager: Unhandled exception while laying out windows java.lang.RuntimeException: Unknown animation name: objectAnimator at android.view.animation.AnimationUtils.createAnimationFromXml(AnimationUtils.java:192) at android.view.animation.AnimationUtils.createAnimationFromXml(AnimationUtils.java:157) at android.view.animation.AnimationUtils.loadAnimation(AnimationUtils.java:138) at com.android.server.wm.AppTransition.loadAnimationRes(AppTransition.java:574) at com.android.server.wm.AppTransition.loadAnimation(AppTransition.java:1593) at com.android.server.wm.AppWindowToken.loadAnimation(AppWindowToken.java:1838) at com.android.server.wm.AppWindowToken.applyAnimationLocked(AppWindowToken.java:1756) at com.android.server.wm.AppWindowToken.setVisibility(AppWindowToken.java:412) .....
that anyway is not causing the app to fail. If I bring the app to the background and then back to the foreground the destination activity appears and works properly. From what I can understand it looks like the transition animation is not completed, but I don't know where to check if there is something wrong with the default animation Android is using to display the destination activity's fragment. If I remove the destination activity and I force the app to navigate to a fragment in the other Dynamic Feature (keeping the activity of the base app instead of creating a new one in the Dynamic Feature) it works fine. So something is wrong with the transition animations and the activity in the destination Dynamic Feature. Is there a way to check the animations to make sure they are executed properly ? Please help, it's days now I'm trying to fix this.