From 9be9704552b47209a09b710032d608620c925f40 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 24 Oct 2019 20:26:33 +0200 Subject: [PATCH] Added remark about download manager --- .../main/java/eu/faircode/netguard/AdapterRule.java | 7 +++++++ app/src/main/res/layout/rule.xml | 10 ++++++++++ app/src/main/res/values/strings.xml | 1 + 3 files changed, 18 insertions(+) diff --git a/app/src/main/java/eu/faircode/netguard/AdapterRule.java b/app/src/main/java/eu/faircode/netguard/AdapterRule.java index 1be06e08..65d9fc07 100644 --- a/app/src/main/java/eu/faircode/netguard/AdapterRule.java +++ b/app/src/main/java/eu/faircode/netguard/AdapterRule.java @@ -107,6 +107,10 @@ public class AdapterRule extends RecyclerView.Adapter im "com.whatsapp.w4b" ); + private List download = Arrays.asList( + "com.google.android.youtube" + ); + public static class ViewHolder extends RecyclerView.ViewHolder { public View view; @@ -128,6 +132,7 @@ public class AdapterRule extends RecyclerView.Adapter im public TextView tvRoaming; public TextView tvRemarkMessaging; + public TextView tvRemarkDownload; public LinearLayout llConfiguration; public TextView tvUid; @@ -187,6 +192,7 @@ public class AdapterRule extends RecyclerView.Adapter im tvRoaming = itemView.findViewById(R.id.tvRoaming); tvRemarkMessaging = itemView.findViewById(R.id.tvRemarkMessaging); + tvRemarkDownload = itemView.findViewById(R.id.tvRemarkDownload); llConfiguration = itemView.findViewById(R.id.llConfiguration); tvUid = itemView.findViewById(R.id.tvUid); @@ -451,6 +457,7 @@ public class AdapterRule extends RecyclerView.Adapter im holder.tvRoaming.setVisibility(rule.roaming && (!rule.other_blocked || rule.screen_other) ? View.VISIBLE : View.INVISIBLE); holder.tvRemarkMessaging.setVisibility(messaging.contains(rule.packageName) ? View.VISIBLE : View.GONE); + holder.tvRemarkDownload.setVisibility(download.contains(rule.packageName) ? View.VISIBLE : View.GONE); // Expanded configuration section holder.llConfiguration.setVisibility(rule.expanded ? View.VISIBLE : View.GONE); diff --git a/app/src/main/res/layout/rule.xml b/app/src/main/res/layout/rule.xml index 7d267b40..d9ae1251 100644 --- a/app/src/main/res/layout/rule.xml +++ b/app/src/main/res/layout/rule.xml @@ -168,6 +168,16 @@ android:textStyle="italic" android:visibility="gone" /> + + has no internet permission is disabled Incoming messages are received by Google Play services and not by this app and can therefore not be blocked by blocking this app + Downloads are performed by the download manager and not by this app and can therefore not be blocked by blocking this app Apply rules and conditions Conditions Allow Wi-Fi when screen is on