Thursday, May 11, 2023

Android FragmentStateManager.createView IllegalArgumentException: No view found for id

I had this exception when replacing a fragment inside another fragment in a transaction where getParentFragmentManager() was called.

The solution was calling getChildFragmentManager():

Return a private FragmentManager for placing and managing Fragments inside of this Fragment.

Thanks to flodaniel here and Malachiasz here.

Saturday, February 25, 2023

Disable "Do you want to open this file?"

 It's really annoying that Windows 10/11? always asks this question when you try to open a file you created.

To disable for new files (old ones are not affected unfortunately):

Open the "Local Group Policy Editor" (search for it).

Go to "User Configuration" -> "Administrative Templates" -> "Windows Components" -> "Attachment Manager".

Double click on "Do not preserve zone information in file attachments" and set it to Enabled.

Trying to open all new files will not result in the dreaded pop up disturbing your work.

Thanks to this forum answer.