Steps to reproduce:
- Have a note type with two cards types, such as Recognition and Production.
 - Have a field that is used to prevent Production card type generation, such as MakeProduction. The front template of the card might look like this:
{{#MakeProduction}}{{Meaning}}{{/MakeProduction}} - Have a few notes with this note, say, 5. If 
MakeProductionfield is empty for all of these, you will have 5 cards. - Edit the front template to remove the 
{{#}}stuff to read only:
{{Meaning}} - Observe that you still only have 5 cards.
 - Run Tools → Check database.
 - Observe that you have 10 cards now.
 
AnkiDroid generates new cards as soon as you edit the template, and I think this is the correct behavior.
Anki version 2.1.52 (ab1c2395), Python 3.9.7, Qt 6.3.0, PyQt 6.3.0 @ Windows 10