Skip to content

Commit 92cf15c

Browse files
committed
set button color in xml layout
1 parent 4a61a63 commit 92cf15c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

WordPress/src/main/java/org/wordpress/android/ui/prefs/WPStartOverPreference.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ public class WPStartOverPreference extends WPPreference {
3131
public WPStartOverPreference(Context context, AttributeSet attrs) {
3232
super(context, attrs);
3333

34-
mButtonTextColor = ContextCompat.getColor(context, R.color.black);
35-
3634
TypedArray array = context.obtainStyledAttributes(attrs, R.styleable.WPStartOverPreference);
3735

3836
for (int i = 0; i < array.getIndexCount(); ++i) {
3937
int index = array.getIndex(i);
4038
if (index == R.styleable.WPStartOverPreference_buttonText) {
4139
mButtonText = array.getString(index);
4240
} else if (index == R.styleable.WPStartOverPreference_buttonTextColor) {
43-
mButtonTextColor = array.getColor(index, ContextCompat.getColor(context, R.color.grey_dark));
41+
mButtonTextColor = array.getColor(index, ContextCompat.getColor(context, R.color.black));
4442
} else if (index == R.styleable.WPStartOverPreference_buttonTextAllCaps) {
4543
mButtonTextAllCaps = array.getBoolean(index, false);
4644
} else if (index == R.styleable.WPStartOverPreference_preficon) {

WordPress/src/main/res/xml/site_settings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@
300300
app:preficon="@drawable/gridicons_history"
301301
app:longClickHint="@string/site_settings_start_over_hint"
302302
app:buttonText="@string/contact_support"
303+
app:buttonTextColor="@color/grey_dark"
303304
app:buttonTextAllCaps="true" />
304305

305306
</PreferenceScreen>

0 commit comments

Comments
 (0)