Skip to content

Commit

Permalink
* prepare submit
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarolus committed Jan 15, 2023
1 parent ccb0e47 commit dd6cd63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="jwtc.android.chess"
android:installLocation="auto"
android:versionCode="189"
android:versionName="9.3.7">
android:versionCode="190"
android:versionName="9.3.8">

<application
android:name="android.app.Application"
Expand Down
7 changes: 6 additions & 1 deletion app/src/main/java/jwtc/android/chess/play/PGNDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import jwtc.android.chess.services.GameApi;
import jwtc.chess.JNI;
import jwtc.chess.PGNEntry;
import jwtc.chess.Pos;

public class PGNDialog extends Dialog {
private static final String TAG = "PGNDialog";
Expand All @@ -45,9 +46,13 @@ public PGNDialog(@NonNull final Context context, final GameApi gameApi) {
ArrayList<PGNEntry> pgnEntries = gameApi.getPGNEntries();

for (int i = 0; i < pgnEntries.size(); i++) {
String sMove = pgnEntries.get(i)._sMove;
if (pgnEntries.get(i)._duckMove != -1) {
sMove += "@" + Pos.toString(pgnEntries.get(i)._duckMove);
}
HashMap<String, String> item = new HashMap<String, String>();
item.put("nr", i % 2 == 0 ? ((i + 1) + ". ") : " ");
item.put("move", pgnEntries.get(i)._sMove);
item.put("move", sMove);
item.put("annotation", pgnEntries.get(i)._sAnnotation);
item.put("turn", Integer.toString(jni.getNumBoard() - 2 == i ? R.drawable.turnblack : 0));

Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/layout/pgn_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
android:layout_height="fill_parent"
android:padding="8dip"
>

<TableRow
style="@style/MyRowStyle"
android:layout_width="fill_parent"
Expand Down Expand Up @@ -39,6 +38,5 @@
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="end"/>

</TableRow>
</TableLayout>

0 comments on commit dd6cd63

Please sign in to comment.