OSDN Git Service

Cache preferences and services in status dialog.
authorLorenzo Colitti <lorenzo@google.com>
Thu, 7 Nov 2013 18:53:29 +0000 (03:53 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Mon, 25 Nov 2013 08:34:08 +0000 (17:34 +0900)
commitb088c8a7c7cf80d1146b0fd1e10479ff98632ab7
treec97805d5512a72e476db108ae6c48224450cfe19
parentca99cb71eab502037120cdf68f854c882fcd9e57
Cache preferences and services in status dialog.

Currently, the status dialog fetches the preferences and system
services that it uses to display connectivity information (e.g.,
IP and MAC addresses) only when the dialog is first opened. This
is fine because the connectivity information is only filled in
once and never updated.

In order to have this information update dynamically (like the
rest of the dialog), fetch and cache these objects in onCreate.
The next change will actually make this information update on
network changes.

[Cherry-pick of 6eb6a908217e080aea43406028be491d269bdbb0]

Bug: 10232006
Change-Id: Ib4072674543e517cf6935e3e03f35090e728090a
src/com/android/settings/Utils.java
src/com/android/settings/deviceinfo/Status.java