OSDN Git Service

Do not reuse DisplayAdjustment in Display.
authorCraig Mautner <cmautner@google.com>
Fri, 28 Jun 2013 19:03:32 +0000 (12:03 -0700)
committerCraig Mautner <cmautner@google.com>
Fri, 28 Jun 2013 19:03:32 +0000 (12:03 -0700)
commit1abaa53dccccc5c94a395bad5fa54cf6783b6974
tree9e59530c44db03ec4807cc2db1830a607d845b6a
parent9e424cfbf4404ae7c56ff374d66e7391ee9e84c4
Do not reuse DisplayAdjustment in Display.

Because the DisplayAdjustment in Display can be modified it should not
use the reference of the DisplayAdjustment that is passed in to
construct the Display. Copy the members of the DisplayAdjustment
instead.

Fixes bug 9622994

Change-Id: I8201b02eba3ef35af3e01f10402cd5dafec1fb23
core/java/android/view/Display.java
core/java/android/view/DisplayAdjustments.java