project: Minor cleanups
Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
parent
22bdffcecd
commit
4d38993832
@ -16,8 +16,6 @@ import java.util.Objects;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public abstract class BaseActivity extends Activity {
|
public abstract class BaseActivity extends Activity {
|
||||||
private static final String TAG = BaseActivity.class.getSimpleName();
|
|
||||||
|
|
||||||
private final SelectionChangeRegistry selectionChangeRegistry = new SelectionChangeRegistry();
|
private final SelectionChangeRegistry selectionChangeRegistry = new SelectionChangeRegistry();
|
||||||
private Tunnel selectedTunnel;
|
private Tunnel selectedTunnel;
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ public final class WgQuickBackend implements Backend {
|
|||||||
final String stateName = resolveState(currentState, state).name().toLowerCase();
|
final String stateName = resolveState(currentState, state).name().toLowerCase();
|
||||||
final File file = new File(context.getFilesDir(), tunnel.getName() + ".conf");
|
final File file = new File(context.getFilesDir(), tunnel.getName() + ".conf");
|
||||||
final String path = file.getAbsolutePath();
|
final String path = file.getAbsolutePath();
|
||||||
// FIXME: Assumes file layout from FIleConfigStore. Use a temporary file.
|
// FIXME: Assumes file layout from FileConfigStore. Use a temporary file.
|
||||||
if (rootShell.run(null, String.format("wg-quick %s '%s'", stateName, path)) != 0)
|
if (rootShell.run(null, String.format("wg-quick %s '%s'", stateName, path)) != 0)
|
||||||
throw new IOException("wg-quick failed");
|
throw new IOException("wg-quick failed");
|
||||||
return tunnel;
|
return tunnel;
|
||||||
|
@ -24,7 +24,7 @@ import org.threeten.bp.format.DateTimeFormatter;
|
|||||||
* Static methods for use by generated code in the Android data binding library.
|
* Static methods for use by generated code in the Android data binding library.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@SuppressWarnings({"unused", "WeakerAccess"})
|
@SuppressWarnings({"unused"})
|
||||||
public final class BindingAdapters {
|
public final class BindingAdapters {
|
||||||
private BindingAdapters() {
|
private BindingAdapters() {
|
||||||
// Prevent instantiation.
|
// Prevent instantiation.
|
||||||
|
@ -35,8 +35,8 @@
|
|||||||
<h3>Come back later!</h3><br>
|
<h3>Come back later!</h3><br>
|
||||||
|
|
||||||
<p>Your Android device does not <em>currently</em> have the WireGuard kernel module. Please
|
<p>Your Android device does not <em>currently</em> have the WireGuard kernel module. Please
|
||||||
talk to the manufacturer of your Android device or the author of your device\'s ROM about
|
talk to the manufacturer of your Android device or the author of your device’s ROM
|
||||||
including the WireGuard kernel module.</p><br>
|
about including the WireGuard kernel module.</p><br>
|
||||||
|
|
||||||
<p>Fortunately, we are in the process of implementing support for WireGuard in a way that
|
<p>Fortunately, we are in the process of implementing support for WireGuard in a way that
|
||||||
will work on all devices, without any need for the kernel module. This means that while you
|
will work on all devices, without any need for the kernel module. This means that while you
|
||||||
|
Loading…
Reference in New Issue
Block a user