mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-20 20:52:18 +01:00
DroidFish: Avoid empty lines in engine thinking information.
This commit is contained in:
@@ -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 = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user