diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-07 00:24:56 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-07 00:24:56 -0600 |
commit | be8b6017d504cdc791f9578ea196934e652b1af6 (patch) | |
tree | 98c46e87485d5ba3032d77a4e4ee9bec11fd3d1a /app/src/main/java/com/wireguard/android/Application.java | |
parent | TunnelManager: Sort tunnels case-insensitively (diff) | |
download | wireguard-android-be8b6017d504cdc791f9578ea196934e652b1af6.tar.xz wireguard-android-be8b6017d504cdc791f9578ea196934e652b1af6.zip |
Make TunnelManager the point of asynchronicity
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'app/src/main/java/com/wireguard/android/Application.java')
-rw-r--r-- | app/src/main/java/com/wireguard/android/Application.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/src/main/java/com/wireguard/android/Application.java b/app/src/main/java/com/wireguard/android/Application.java index c0fb046a..e8d0d7db 100644 --- a/app/src/main/java/com/wireguard/android/Application.java +++ b/app/src/main/java/com/wireguard/android/Application.java @@ -81,17 +81,15 @@ public class Application extends android.app.Application { @ApplicationScope @Provides - public static Backend getBackend(final AsyncWorker asyncWorker, - @ApplicationContext final Context context, + public static Backend getBackend(@ApplicationContext final Context context, final RootShell rootShell) { - return new WgQuickBackend(asyncWorker, context, rootShell); + return new WgQuickBackend(context, rootShell); } @ApplicationScope @Provides - public static ConfigStore getConfigStore(final AsyncWorker asyncWorker, - @ApplicationContext final Context context) { - return new FileConfigStore(asyncWorker, context); + public static ConfigStore getConfigStore(@ApplicationContext final Context context) { + return new FileConfigStore(context); } |