Skip to content

Commit

Permalink
quick fix to not access other activities
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarolus committed Jul 16, 2016
1 parent 7b2ce0c commit 6a323a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="jwtc.android.chess"
android:versionCode="139"
android:versionName="8.6.11"
android:versionCode="141"
android:versionName="8.7.1"
android:installLocation="auto"
>
<application android:name=".MyApplication" android:icon="@drawable/icon" android:label="@string/app_name"
Expand Down
9 changes: 5 additions & 4 deletions app/src/main/java/jwtc/android/chess/ChessImageView.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ public void onDraw(Canvas canvas) {

bmp = _arrPieceBitmaps[ico._color][ico._piece];

if (_start.sActivity.equals("Play") && _options.is_bFlipBlack() &&
(_options._radioBlack.isChecked() ? ico._color == 1 : ico._color == 0)) { // flips black for human vs human without
canvas.rotate(180, getWidth()/2, getHeight()/2); // autoflip on while in Play mode
}
// quick fix to not access other activities
// if (_start.sActivity.equals("Play") && _options.is_bFlipBlack() &&
// (_options._radioBlack.isChecked() ? ico._color == 1 : ico._color == 0)) { // flips black for human vs human without
// canvas.rotate(180, getWidth()/2, getHeight()/2); // autoflip on while in Play mode
// }

canvas.drawBitmap(bmp, _matrix, _paint);

Expand Down

0 comments on commit 6a323a3

Please sign in to comment.