Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebf03681 authored by andrewxu's avatar andrewxu Committed by Andrew Xu
Browse files

Avoid reusing the same battery view model instance in Kosmos

This change ensures a new model instance is always created via
factory.create() instead of reusing an existing one. Reusing the
same instance caused an error when attempting to activate an
already-activated model, which was discovered in the new test at
ag/35064871.

Bug:None
Flag:TEST_ONLY
Change-Id: Ib3f449796f04fc2d6b9daa04c5388ddc69c8276e
parent 798e5cd0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment