aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/org/bienvenidoainternet/baiparser/ThreadListAdapter.java4
-rw-r--r--app/src/main/res/xml/preferences.xml4
2 files changed, 7 insertions, 1 deletions
diff --git a/app/src/main/java/org/bienvenidoainternet/baiparser/ThreadListAdapter.java b/app/src/main/java/org/bienvenidoainternet/baiparser/ThreadListAdapter.java
index 118e9c6..57aa362 100644
--- a/app/src/main/java/org/bienvenidoainternet/baiparser/ThreadListAdapter.java
+++ b/app/src/main/java/org/bienvenidoainternet/baiparser/ThreadListAdapter.java
@@ -220,7 +220,9 @@ public class ThreadListAdapter extends ArrayAdapter<BoardItem>{
// Trasnparentar items con sage
if (convertView != null){
- convertView.setAlpha(boardItem.isSage() ? 0.75F : 1.0F);
+ if (settings.getBoolean("pref_transparent_sage", true)){
+ convertView.setAlpha(boardItem.isSage() ? 0.75F : 1.0F);
+ }
}
/*
diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml
index 7f6d5b9..459f65c 100644
--- a/app/src/main/res/xml/preferences.xml
+++ b/app/src/main/res/xml/preferences.xml
@@ -49,6 +49,10 @@
android:entries="@array/pref_lastreplies_desc"
android:entryValues="@array/pref_lastreplies_values"
android:defaultValue="30"/>
+ <SwitchPreference
+ android:title="Transparentar sages"
+ android:key="pref_transparent_sage"
+ android:defaultValue="true"/>
</PreferenceCategory>
<PreferenceCategory
android:title="Formulario de respuesta">