commit | 76da1da5339087547e460fabe13d278e9989a39a | [log] [tgz] |
---|---|---|
author | Hyundo Moon <hdmoon@google.com> | Thu Nov 19 19:56:33 2020 +0900 |
committer | Hyundo Moon <hdmoon@google.com> | Thu Nov 19 20:58:06 2020 +0900 |
tree | 2f3270db17058b5c9fbe26250d279c249ebe1036 | |
parent | 6fa73c8e20e579024f67809917041fc01548b8e8 [diff] |
Rating: Disallow putting Float.NaN as star/percent values When creating a Rating instance, invalid values shouldn't be allowed. However, Float.NaN passes the checks, which leads to creating invalid ones. This CL fixes the code. Bug: 173680971 Test: Passed CTS Change-Id: I629f1568a2efb0c324cc11e94969356c59298db8