aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2016-04-08 16:41:48 -0300
committerLibravatar Renard 2016-04-08 16:41:48 -0300
commite92d1607eb9e71951928155cea53d65b7c665726 (patch)
tree164eb9f67ce827430c9818b8e37e40bf4f2c7909
parentcccdd347cdaf83d85c2a6d37144bc4f7f40e5dc5 (diff)
downloadBaiApp-e92d1607eb9e71951928155cea53d65b7c665726.tar.gz
BaiApp-e92d1607eb9e71951928155cea53d65b7c665726.tar.xz
BaiApp-e92d1607eb9e71951928155cea53d65b7c665726.zip
pref_transparent_sage
-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">