'Changes after convert to MotionLayout not recorded in git

In a new fragment with a ConstraintLayout I convert it to MotionLayout by selecting the menu option "Convert to MotionLayout"

The conversion completes successfully and the xml file with the MotionScene is created

The problem is that none of these changes is recorded in git! I'm using GitHub Desktop and after the conversion, there are no changes that I can commit. None of the changes to the fragment are recorded and the xml file with the MotionScene doesn't appear as created in git.

Also, after making other changes to that particular fragment (for example delete everything from the layout) don't appear to GitHub Desktop anymore. It is as if changes to the fragment are ignored.

Changes to other source files are recorded as usual to GitHub Desktop

By the way, there are no changes to .gitignore file (.gitignore doesn't appear as having changes in GitHub Desktop)

Anyone knows why this thing is happening and how I can correct it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source