OSDN Git Service

Replace usages of ShortNumberUtil with ShortNumberInfo
authorPaul Duffin <paulduffin@google.com>
Tue, 9 Feb 2016 16:40:53 +0000 (16:40 +0000)
committerPaul Duffin <paulduffin@google.com>
Tue, 9 Feb 2016 16:40:53 +0000 (16:40 +0000)
commitc2884fe2597e4db2879c62f101da9c40d3cb2435
tree7e07a5be4a10a4625280c075b40bdd8f13274231
parent857b65657d453801e9b73f998043603456dac813
Replace usages of ShortNumberUtil with ShortNumberInfo

The ShortNumberInfo class appears to support the exact same
methods as the ShortNumberUtil class (at least in terms of the
methods used by this project) but is a singleton and so
instances cannot be created directly but instead must be
retrieved using the static getInstance() method.

The ShortNumberUtil class was deprecated in version 5.8 and
removed in 7.2.3 of libphonenumber. This change is required in
order to allow libphonenumber to be upgraded to 7.2.4.

Bug: 26975810
Change-Id: Ide40c65d12cb44453f84600fc4b5ad1ee1088470
telephony/java/android/telephony/PhoneNumberUtils.java