diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-01-29 16:12:05 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-01-29 16:12:05 +0000 |
| commit | e43865310f96ad9b5f7f81f5924ff680fc5c9b81 (patch) | |
| tree | f534c5a4c28aeca18a330549f7a68e5ce04c7fd3 /windows/nsis-plugins/src/driverlogic/context.cpp | |
| parent | 84bfdd604187f348dc098461ff41b6a95eab8958 (diff) | |
| download | mullvadvpn-e43865310f96ad9b5f7f81f5924ff680fc5c9b81.tar.xz mullvadvpn-e43865310f96ad9b5f7f81f5924ff680fc5c9b81.zip | |
Only unsubscribe listeners if destroying activity
Previously, `MainActivity` would unsubscribe all service listeners when
it was stopping (i.e., going to the background). However, that meant
that once it resumed all UI fragments that were sub-classes of
`ServiceAwareFragment` would still reference the old service, which
might have been stopped or replaced, and wouldn't receive any updates if
the service connection is dropped or replaced.
Diffstat (limited to 'windows/nsis-plugins/src/driverlogic/context.cpp')
0 files changed, 0 insertions, 0 deletions
