Peter Serwylo d46efb1d84 Correctly start and stop listening for repo update events during swap.
This fixes the following bugs:
 * `BroadcastReceiver` was never being created due to incorrect guard
   condition `if (pollForUpdatesReceiver != null)` (should have been
   `== null`).
 * Called `unregisterReceiver` rather than `registerReceiver`.
 * Even if it did work, it didn't make an effort to unregister the receiver.

In addition, the creation and listening with the `BroadcastReceiver is
now done in a way similar to the other swap views:
 * Create it as a `final` member variable.
 * `registerReceiver` when view is inflated.
 * `unregisterReceiver` when view is detached.
2016-03-21 22:33:18 +11:00
..
2015-10-04 08:14:48 -07:00
2016-03-15 21:08:54 +00:00
2016-03-10 16:53:01 +00:00