From fdd807335fa946131e77b6a1ca2d2c645780d05d Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 9 Mar 2017 07:15:50 +0100 Subject: [PATCH] Ask if sure on DNS clear --- app/src/main/java/eu/faircode/netguard/ActivityDns.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/netguard/ActivityDns.java b/app/src/main/java/eu/faircode/netguard/ActivityDns.java index 3c497d24..eaa2a275 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivityDns.java +++ b/app/src/main/java/eu/faircode/netguard/ActivityDns.java @@ -66,7 +66,12 @@ public class ActivityDns extends AppCompatActivity { return true; case R.id.menu_clear: - clear(); + Util.areYouSure(this, R.string.menu_clear, new Util.DoubtListener() { + @Override + public void onSure() { + clear(); + } + }); return true; } return false;