don't crash when setTitle called with id of 0

This commit is contained in:
Eric House 2020-08-25 15:54:33 -07:00
parent b0f7176b6c
commit 14cad646e3

View file

@ -860,8 +860,11 @@ public class LocUtils {
@Override
public AlertDialog.Builder setTitle( int id )
{
String str = getString( m_context, id );
return setTitle( str );
if ( 0 != id ) {
String str = getString( m_context, id );
setTitle( str );
}
return this;
}
public AlertDialog.Builder setMessage( int textId )