DroidFish: Avoid empty lines in engine thinking information.

This commit is contained in:
Peter Osterlund 2011-12-31 10:36:46 +00:00
parent c1ab57b4f9
commit 6cd29a0353

View File

@ -947,11 +947,15 @@ public class DroidFish extends Activity implements GUIInterface {
String s = ""; String s = "";
if (mShowThinking || gameMode.analysisMode()) { if (mShowThinking || gameMode.analysisMode()) {
s = thinkingStr1; s = thinkingStr1;
if (mShowStats) if (s.length() > 0) thinkingEmpty = false;
s += "\n" + thinkingStr2; if (mShowStats) {
if (!thinkingEmpty)
s += "\n";
s += thinkingStr2;
if (s.length() > 0) thinkingEmpty = false;
}
} }
thinking.setText(s, TextView.BufferType.SPANNABLE); thinking.setText(s, TextView.BufferType.SPANNABLE);
if (s.length() > 0) thinkingEmpty = false;
} }
if (mShowBookHints && (bookInfoStr.length() > 0)) { if (mShowBookHints && (bookInfoStr.length() > 0)) {
String s = ""; String s = "";