OSDN Git Service

Fixes crash in security settings.
authorDoris Ling <dling@google.com>
Tue, 24 Apr 2018 20:19:27 +0000 (13:19 -0700)
committerDoris Ling <dling@google.com>
Tue, 24 Apr 2018 23:54:42 +0000 (16:54 -0700)
commit70206e6ff2454a22c8336a09ff74b210c16df50e
tree56334ed4a035620118a988b128c645c3a6c85e35
parent465f6da15b804e3ff077d78a76296340b24a5c3b
Fixes crash in security settings.

- save the loaded icon drawable to a local var, instead of setting it to
the tile.icon and later reset it, so that we will not run into the issue
that the icon will become null when this is called multiple times.

Change-Id: I0fc73961986cddd97ad1e74b0609ac47d011cc87
Fixes: 78445923
Test: make RunSettingsRoboTests
src/com/android/settings/dashboard/DashboardFeatureProviderImpl.java