From eefe2bdea6e79548ef5a0c0a50b3afc495b034b3 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 11 May 2023 20:03:37 +0200 Subject: next commit --- app/java/src/DNSService.java | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 app/java/src/DNSService.java (limited to 'app/java/src/DNSService.java') diff --git a/app/java/src/DNSService.java b/app/java/src/DNSService.java deleted file mode 100644 index 4f760a5..0000000 --- a/app/java/src/DNSService.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.pihole.dnsproxy; - -import android.app.AlertDialog; -import android.app.Service; - -import android.content.Intent; - -import android.net.VpnService; - -public class DNSService extends VpnService { - - private static boolean isRunning = false; - - @Override - public int onStartCommand(Intent intent, int flags, int startId) { - //VpnService.prepare(); - - DNSService.isRunning = true; - - return Service.START_STICKY; - } - - @Override - public void onDestroy() { - DNSService.isRunning = false; - super.onDestroy(); - } - - public static boolean isRunning() - { - return DNSService.isRunning; - } -} -- cgit v1.2.3