commit | 32dd1b916a2658ce4ef96a2d2537cdeeded10979 | [log] [tgz] |
---|---|---|
author | Tiger Huang <tigerhuang@google.com> | Mon Jun 06 20:32:46 2022 +0800 |
committer | Tiger Huang <tigerhuang@google.com> | Mon Jun 06 13:02:59 2022 +0000 |
tree | 130dca12aeb3c91193634b0f3e4664ecce31af19 | |
parent | f88813c632af57d2b6aab66939588bbf4c989928 [diff] |
Don't set extreme values of Integer to safe bounds This is to prevent getting unexpected results while calculating the width or height of the rectangle, due to the overflow. This CL defines the borders of the window layout with large enough integers, which are also the borders of the safe bounds. Fix: 227276622 Test: atest ConfigurationScreenLayoutTest#testScreenLayout Change-Id: Iee14e6de48f57be4999f64dbdce01815de88a9df