aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/AndroidManifest.xml
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-07-30 01:48:57 -0500
committerSamuel Holland <samuel@sholland.org>2017-07-30 01:48:57 -0500
commit09a61d81b2285bdfbe2437a17b4999b59fd70571 (patch)
treefa8242c3df6096283cb227c905cc99061d29e900 /app/src/main/AndroidManifest.xml
parentbinding: Weakly reference adapter in list change callback (diff)
downloadwireguard-android-09a61d81b2285bdfbe2437a17b4999b59fd70571.tar.xz
wireguard-android-09a61d81b2285bdfbe2437a17b4999b59fd70571.zip
ProfileService: Create it and move profile loading
The long-running service is needed for keeping track of which profiles are enabled, for showing notifications, and for the tile service to use. Since it has to know which profiles exist anyway, moving the main ObservableList there avoids some code duplication. It ensures the list is only loaded once, so it cannot get out of sync. It also makes the ProfileList activity load faster, because it doesn't have to wait for file I/O; and it provides a canonical place for storing the Profile objects so they are accessible everywhere, instead of having to look them up by name. This does present some challenges with leaking activities, because all listeners must be removed from the profiles list (and its contents) when an activity is stopped.
Diffstat (limited to 'app/src/main/AndroidManifest.xml')
-rw-r--r--app/src/main/AndroidManifest.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 82186447..02a8b7fa 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -16,6 +16,10 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
+
+ <service
+ android:name=".ProfileService"
+ android:exported="false" />
</application>
</manifest>