mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-03 05:44:14 +00:00
Added remark about download manager
This commit is contained in:
parent
5df4e83f66
commit
9be9704552
3 changed files with 18 additions and 0 deletions
|
@ -107,6 +107,10 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> im
|
|||
"com.whatsapp.w4b"
|
||||
);
|
||||
|
||||
private List<String> 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<AdapterRule.ViewHolder> 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<AdapterRule.ViewHolder> 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<AdapterRule.ViewHolder> 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);
|
||||
|
|
|
@ -168,6 +168,16 @@
|
|||
android:textStyle="italic"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvRemarkDownload"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="6dp"
|
||||
android:text="@string/title_download"
|
||||
android:textAppearance="@style/TextSmall"
|
||||
android:textStyle="italic"
|
||||
android:visibility="gone" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/llConfiguration"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -250,6 +250,7 @@ Your internet traffic is not being sent to a remote VPN server.</string>
|
|||
<string name="title_internet">has no internet permission</string>
|
||||
<string name="title_disabled">is disabled</string>
|
||||
<string name="title_messaging">Incoming messages are received by Google Play services and not by this app and can therefore not be blocked by blocking this app</string>
|
||||
<string name="title_download">Downloads are performed by the download manager and not by this app and can therefore not be blocked by blocking this app</string>
|
||||
<string name="title_apply">Apply rules and conditions</string>
|
||||
<string name="title_conditions">Conditions</string>
|
||||
<string name="title_screen_wifi">Allow Wi-Fi when screen is on</string>
|
||||
|
|
Loading…
Reference in a new issue