fix update when text cleared: passing null to setText() is ok

This commit is contained in:
Eric House 2014-05-22 06:46:59 -07:00
parent 91d7213be6
commit 4b26e04691

View file

@ -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 );
}
}