commit | 17dbd5b1f564bc96033c65dc290711c761ab5586 | [log] [tgz] |
---|---|---|
author | yinxu <yinxu@google.com> | Mon Mar 12 14:07:49 2018 -0700 |
committer | yinxu <yinxu@google.com> | Wed Mar 14 11:35:24 2018 -0700 |
tree | 36f64b28c107cf52f247731a000e34f8717ce143 | |
parent | 57479b64b776cfe24b70073e41badab5f77aa39f [diff] |
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. This is a clean cherry-pick from https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/3725360 Bug:73750871 Test: Unit Test Change-Id: Id13f5fabf7eaad6970ab66a83a17aba7f1eebfce Merged-in: Id13f5fabf7eaad6970ab66a83a17aba7f1eebfce (cherry picked from commit db18cdae661b87ff2de3847947906da735f8d5eb)