From e92d1607eb9e71951928155cea53d65b7c665726 Mon Sep 17 00:00:00 2001 From: Renard Date: Fri, 8 Apr 2016 16:41:48 -0300 Subject: pref_transparent_sage --- .../java/org/bienvenidoainternet/baiparser/ThreadListAdapter.java | 4 +++- app/src/main/res/xml/preferences.xml | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'app/src/main') 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{ // 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"/> + -- cgit v1.2.1-18-gbd029