commit | a1649aa270ee08c4079b006ae99842ee0e50f441 | [log] [tgz] |
---|---|---|
author | Khalid Zubair <kzubair@cyngn.com> | Fri Jun 24 14:37:35 2016 -0700 |
committer | Scott Mertz <scott@cyngn.com> | Fri Jun 24 17:08:50 2016 -0700 |
tree | 19c16f116b0c79e7b3142c1ff9075c19f8e60d36 | |
parent | 4da63b534eecadab856bf4e39d74aa208798dca1 [diff] |
Fix exponential content observer registration On each call to ContentObserver.onChange(), updateUi() re-registers a ContentObserver. On the first onChange, a second observer is registered and for the next change, both observers call updateUi() registering two more, and so on. After n onChanges there are 2^n observers. Remove the duplicate registrations and register a ContentObserver only if the station changes. FEIJ-1373 Change-Id: I07d0bd968165dfda5601f72fd20641bb9d62a5f1