Peter Serwylo c6401d28e2 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-04-01 16:36:11 +02:00
..
2016-02-28 22:41:02 +00:00
2016-03-22 11:55:13 +00:00
2016-02-28 16:44:44 +00:00