OSDN Git Service

Set fontScale in override config to be equal to global.
authorChong Zhang <chz@google.com>
Sat, 4 Jun 2016 00:43:10 +0000 (17:43 -0700)
committerChong Zhang <chz@google.com>
Tue, 7 Jun 2016 22:56:53 +0000 (15:56 -0700)
commit92ab103cb666059d48eca9e79977cf559abdde0a
tree724bfee4b6c8b55457c40c2a1a467949ba2038d3
parentc0b602c441337f9597959a02262de525b1793a94
Set fontScale in override config to be equal to global.

The default fontScale in EMPTY config is 1.0. This will result in
updateFrom always overriding the fontScale to 1.0 since it's non-zero.

We can't set it to 0.0 either as that will make the override config
not equal to EMPTY. The rest of the code doesn't work well with that.

So here we always set the override fontScale to be idential to global.

bug: 29113700
Change-Id: I1dbe507145b8190a9ae5e108948c833d4e037e1d
services/core/java/com/android/server/am/TaskRecord.java