OSDN Git Service

Merge change 27411 into eclair
authorAndroid (Google) Code Review <android-gerrit@google.com>
Mon, 28 Sep 2009 17:07:16 +0000 (13:07 -0400)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Mon, 28 Sep 2009 17:07:16 +0000 (13:07 -0400)
commitfee73ee2d6eb3e875e39a64c410d6a1ff8508ad3
tree3f596da141b452f67e213b16ec226910be17af41
parent1cdb55aa97d8035a941a4bd7cf23063f18360ab5
parent01dbc2ed55a081d41d233e891ea1ea1b0484f383
Merge change 27411 into eclair

* changes:
  Cache inflated view to avoid inflation of layouts in preferences If layout id is specified for a Preference object, convertView is set to null in its adapter which results in inflation of Preference view in getView each time the Preference object is laid out on the screen. Just use an instance variable to cache the inflated view nulling it whenever the layout changes and use it in initing the convertView in getView.