no blank Translate menu titles

This commit is contained in:
Eric House 2014-05-19 07:26:10 -07:00
parent 1ebf51d3ab
commit 4452adf33d

View file

@ -399,7 +399,10 @@ public class LocUtils {
String title = activity.getString( R.string.loc_menu_xlate );
associateMenuString( rootRef, title );
title = getXlation( activity, title, true );
String xlated = getXlation( activity, title, true );
if ( null != xlated ) {
title = xlated;
}
menu.add( title )
.setOnMenuItemClickListener( new OnMenuItemClickListener() {
public boolean onMenuItemClick( MenuItem item ) {