commit | e487b00157c77cb665ae3a44f006d660f7417f50 | [log] [tgz] |
---|---|---|
author | hughchen <hughchen@google.com> | Wed Nov 13 11:55:32 2019 +0800 |
committer | hughchen <hughchen@google.com> | Wed Nov 13 11:55:32 2019 +0800 |
tree | cf9743536c2c0e70d2901002d60198c339051f4a | |
parent | ee9f1be50a2d058f1d01911e9af44ad614dc31d5 [diff] |
Don't use Lambda when register callback This CL before, the lambda callback is different it cause callback didn't unregister. If you re-enter bluetooth detail page many times, onDeviceAttributesChanged() will be called many times cause UI not smooth. This CL remove the lambda callback and show the UI when device connected. Fixes: 141583252 Test: Manual Change-Id: Icd3e84b2d461d9b949f080269dfa2bb5b5d5cb73