From 8015144fa732c731284eb67991c29ad62b7fcc14 Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Mon, 24 Jan 2022 19:13:52 +0100 Subject: [PATCH] Add NSFW antifeature --- .../fdroid/views/appdetails/AntiFeaturesListingView.java | 6 +++++- app/src/main/res/drawable/ic_antifeature_nsfw.xml | 4 ++++ app/src/main/res/values/strings.xml | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/drawable/ic_antifeature_nsfw.xml diff --git a/app/src/main/java/org/fdroid/fdroid/views/appdetails/AntiFeaturesListingView.java b/app/src/main/java/org/fdroid/fdroid/views/appdetails/AntiFeaturesListingView.java index 5758d43e7..984034a77 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/appdetails/AntiFeaturesListingView.java +++ b/app/src/main/java/org/fdroid/fdroid/views/appdetails/AntiFeaturesListingView.java @@ -133,6 +133,8 @@ public class AntiFeaturesListingView extends RecyclerView { return context.getString(R.string.antiknownvulnlist); } else if (antiFeatureName.equals(context.getString(R.string.antinosource_key))) { return context.getString(R.string.antinosourcesince); + } else if (antiFeatureName.equals(context.getString(R.string.antinsfw_key))) { + return context.getString(R.string.antinsfw); } else { return antiFeatureName; } @@ -159,8 +161,10 @@ public class AntiFeaturesListingView extends RecyclerView { return R.drawable.ic_antifeature_knownvuln; } else if (antiFeatureName.equals(context.getString(R.string.antinosource_key))) { return R.drawable.ic_antifeature_nosourcesince; + } else if (antiFeatureName.equals(context.getString(R.string.antinsfw_key))) { + return R.drawable.ic_antifeature_nsfw; } else { return R.drawable.ic_cancel; } } -} \ No newline at end of file +} diff --git a/app/src/main/res/drawable/ic_antifeature_nsfw.xml b/app/src/main/res/drawable/ic_antifeature_nsfw.xml new file mode 100644 index 000000000..a1bf3b846 --- /dev/null +++ b/app/src/main/res/drawable/ic_antifeature_nsfw.xml @@ -0,0 +1,4 @@ + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1d114be0a..e21c1fa69 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -289,6 +289,7 @@ This often occurs with apps installed via Google Play or other sources, if they DisabledAlgorithm KnownVuln NoSourceSince + NSFW _anti_others_ Anti-features Ads @@ -312,6 +313,7 @@ This often occurs with apps installed via Google Play or other sources, if they This app has a weak security signature This app contains a known security vulnerability The source code is no longer available, no updates possible. + This app contains content that should not be publicized or visible everywhere Display Expert mode