Fix a bunch of repeated reads of a ro.* property
SystemProperties.get() is not particularly fast, especially if a string is returned. Since ro.* values are unable to be changed, there's no need to continously re-query them. Cache the value at static init time to trivially fix this. Test: refactoring CL. Change-Id: Iccb021d3cb2ba3a4a1d0048ddec6811bb7409eec (cherry picked from commit aa67f684)
Loading
Please register or sign in to comment