Skip to content

Saved XML markup is deleted after entering the layout editor and tapping "Discard changes and exit" #926

@Ben-ADFA

Description

@Ben-ADFA

Ref. 2813

Reported by Vkrm on Telegram (using 26.06 with Android 11 on Redmi K20 Pro/9T pro):
https://t.me/CodeOnTheGoDiscussions/1616
Some of .xml works, but some gets overridden through it to a fresh .xml and even worse we can't do 'close unsaved' because that saves it as empty .xml which was 100+ lines before.

Provided video upon request (video shows all behavior):
https://t.me/CodeOnTheGoDiscussions/1622
Affected: home.xml and activity_main_drawer.xml
Others have no issue, only some gets this weird behaviour, like even we aren't able to undo it.

video_2026-02-04_14-42-36.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions