mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
test for null that should never happen but google play says does.
This commit is contained in:
parent
e9ffcdbbc5
commit
b3ebadfde5
1 changed files with 8 additions and 5 deletions
|
@ -288,11 +288,14 @@ public class DictBrowseActivity extends XWListActivity
|
|||
int position, long id )
|
||||
{
|
||||
TextView text = (TextView)view;
|
||||
int newval = Integer.parseInt( text.getText().toString() );
|
||||
if ( parent == m_minSpinner ) {
|
||||
setMinMax( newval, m_browseState.m_maxShown );
|
||||
} else if ( parent == m_maxSpinner ) {
|
||||
setMinMax( m_browseState.m_minShown, newval );
|
||||
// null text seems to have generated at least one google play report
|
||||
if ( null != text ) {
|
||||
int newval = Integer.parseInt( text.getText().toString() );
|
||||
if ( parent == m_minSpinner ) {
|
||||
setMinMax( newval, m_browseState.m_maxShown );
|
||||
} else if ( parent == m_maxSpinner ) {
|
||||
setMinMax( m_browseState.m_minShown, newval );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue