WgQuickBackend: Ensure tools are available before use

Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
Samuel Holland
2018-01-08 23:39:32 -06:00
parent 5201c7f849
commit c806e655fa
2 changed files with 10 additions and 3 deletions
@@ -81,8 +81,9 @@ public class Application extends android.app.Application {
@ApplicationScope
@Provides
public static Backend getBackend(@ApplicationContext final Context context,
final RootShell rootShell) {
return new WgQuickBackend(context, rootShell);
final RootShell rootShell,
final ToolsInstaller toolsInstaller) {
return new WgQuickBackend(context, rootShell, toolsInstaller);
}
@ApplicationScope