show game name in title if not hidden

This commit is contained in:
Andy2 2010-10-11 06:47:33 -07:00
parent e637a64d96
commit 86b57526df

View file

@ -299,7 +299,6 @@ public class BoardActivity extends Activity implements UtilCtxt {
if ( m_path.charAt(0) == '/' ) {
m_path = m_path.substring( 1 );
}
} // onCreate
@Override
@ -762,7 +761,9 @@ public class BoardActivity extends Activity implements UtilCtxt {
}
m_jniThread.handle( JNICmd.CMD_START );
// setTitle( GameUtils.gameName( this, m_path ) );
if ( !CommonPrefs.getHideTitleBar( this ) ) {
setTitle( GameUtils.gameName( this, m_path ) );
}
m_toolbar =
new Toolbar( this, findViewById( R.id.toolbar_horizontal ),
findViewById( R.id.toolbar_vertical ) );