mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
don't crash when setTitle called with id of 0
This commit is contained in:
parent
b0f7176b6c
commit
14cad646e3
1 changed files with 5 additions and 2 deletions
|
@ -860,8 +860,11 @@ public class LocUtils {
|
||||||
@Override
|
@Override
|
||||||
public AlertDialog.Builder setTitle( int id )
|
public AlertDialog.Builder setTitle( int id )
|
||||||
{
|
{
|
||||||
String str = getString( m_context, id );
|
if ( 0 != id ) {
|
||||||
return setTitle( str );
|
String str = getString( m_context, id );
|
||||||
|
setTitle( str );
|
||||||
|
}
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AlertDialog.Builder setMessage( int textId )
|
public AlertDialog.Builder setMessage( int textId )
|
||||||
|
|
Loading…
Reference in a new issue