I can’t say that this wouldn’t help in some extreme buggy scenarios where the battery mgmt is not able to report / read the current actual battery status, but it would be the last thing I would try and do to resolve such issues.
EDIT:
reading through the comments in the thread you linked, even OP recognizes that it did pretty much nothing but corrected a visual bug on the % of battery available.
I can’t say that this wouldn’t help in some extreme buggy scenarios where the battery mgmt is not able to report / read the current actual battery status, but it would be the last thing I would try and do to resolve such issues.
EDIT: reading through the comments in the thread you linked, even OP recognizes that it did pretty much nothing but corrected a visual bug on the % of battery available.