From 4b26e046915a6f23ecf685c850e973b3bf71fec5 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 22 May 2014 06:46:59 -0700 Subject: [PATCH] fix update when text cleared: passing null to setText() is ok --- .../src/org/eehouse/android/xw4/loc/LocListItem.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocListItem.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocListItem.java index 46adf62dd..3c9afc96c 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocListItem.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocListItem.java @@ -81,12 +81,11 @@ public class LocListItem extends LinearLayout { } else { xlation = LocUtils.getBlessedXlation( getContext(), key, true ); } - if ( null != xlation ) { - m_pair.setXlation( xlation ); - m_xlated.setText( xlation ); - if ( local ) { - m_xlated.setTextColor( LOCAL_COLOR ); - } + + m_pair.setXlation( xlation ); + m_xlated.setText( xlation ); + if ( local ) { + m_xlated.setTextColor( LOCAL_COLOR ); } }