Commit ecdd49d
committed
keep preference listener to react to consent change
The change of the consent flag happens in a dialog, i.e. when the
main activity is paused. To still react to this and register the
network callback during initialization, we need to keep the
change listener registered. It should be fine to only unregister
on destroy: if the process is really killed, then the shared
preferences instance will also be gone, so it should not matter
that we did not call unregister on it.1 parent 2005efe commit ecdd49d
File tree
1 file changed
+1
-7
lines changed- app/src/main/java/org/ostrya/presencepublisher
1 file changed
+1
-7
lines changedLines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 61 | | |
69 | 62 | | |
| 63 | + | |
70 | 64 | | |
71 | 65 | | |
72 | 66 | | |
| |||
0 commit comments