OSDN Git Service

Application names are now lazily loaded
authorFyodor Kupolov <fkupolov@google.com>
Thu, 14 Jul 2016 01:11:59 +0000 (18:11 -0700)
committerFyodor Kupolov <fkupolov@google.com>
Fri, 15 Jul 2016 17:32:02 +0000 (17:32 +0000)
commitc9b9898e9aafe76594323a41e8954cb08d02818f
treea0b1c2c69a24e8679aa290112be34f08b197be3e
parent9b0931e98627fd4da0e67c9c434a85d5436f9ae6
Application names are now lazily loaded

Previously when SmsApplication.getDefaultApplication was called, application
names were loaded for all candidate apps. The problem with that approach
that names are expensive to load and not always needed.

The implementation has been changed to only load application name when
it's requested by getApplicationName(Context).

Bug: 26237300
Change-Id: Ia711b7db8b979af8f7a1be7eefbce20f3e0ab1df
src/com/android/settings/SmsDefaultDialog.java