OSDN Git Service

Fix a bug when calling onError(int)
authoryinxu <yinxu@google.com>
Mon, 12 Mar 2018 21:07:49 +0000 (14:07 -0700)
committeryinxu <yinxu@google.com>
Mon, 12 Mar 2018 21:07:49 +0000 (14:07 -0700)
commitdb18cdae661b87ff2de3847947906da735f8d5eb
treecb620be2d8f8ffb3e55dad237b4b3b353245afa7
parentec174b28c40f21a4a3bb99b8785fa3022db74335
Fix a bug when calling onError(int)

The lambda expression is executed on executor, so it is possible that
the message has been updated. The correct way is to fetch the
message.arg1 and use that value in the lamda expression.

Bug:73750871
Test: Unit Test
Change-Id: Id13f5fabf7eaad6970ab66a83a17aba7f1eebfce
telephony/java/android/telephony/TelephonyScanManager.java