OSDN Git Service

Optimize setting padding and backgrounds for views
authorAdam Powell <adamp@google.com>
Tue, 11 Nov 2014 01:47:37 +0000 (17:47 -0800)
committerAdam Powell <adamp@google.com>
Wed, 12 Nov 2014 18:26:32 +0000 (10:26 -0800)
commit05f35127e322552b04633f38d45b6a6f6ca78f66
tree78ed846bd589767aacb515abe94f54da01d6346c
parent2755644d32fc87dd29612302edc7ebf4cba31ff6
Optimize setting padding and backgrounds for views

Don't reset the entire chain of child views whenever we set our own
padding or background; clear our own bidi resolution bits only. This
prevents doing a lot of extra recursive work when changing properties
of a parent view that cannot affect children.

Bug 18159214

Change-Id: I94300402785c79c3199e768ad7b6d7027d8d5d5f
core/java/android/view/View.java
core/java/android/view/ViewGroup.java