mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-01-31 09:30:40 +01:00
DroidFish: When sharing an image, share only the chessboard.
This commit is contained in:
parent
af9b505e87
commit
ec63491303
|
@ -1485,8 +1485,8 @@ public class DroidFish extends Activity
|
|||
return;
|
||||
}
|
||||
|
||||
Probe gtbProbe = Probe.getInstance();
|
||||
ArrayList<Pair<Integer,ProbeResult>> x = gtbProbe.movePieceProbe(cb.pos, sq);
|
||||
Probe probe = Probe.getInstance();
|
||||
ArrayList<Pair<Integer,ProbeResult>> x = probe.movePieceProbe(cb.pos, sq);
|
||||
if (x == null) {
|
||||
cb.setSquareDecorations(null);
|
||||
return;
|
||||
|
@ -2295,7 +2295,7 @@ public class DroidFish extends Activity
|
|||
}
|
||||
|
||||
private final void shareImage() {
|
||||
View v = findViewById(R.id.main);
|
||||
View v = findViewById(R.id.chessboard);
|
||||
Bitmap b = Bitmap.createBitmap(v.getWidth(), v.getHeight(),
|
||||
Bitmap.Config.ARGB_8888);
|
||||
Canvas c = new Canvas(b);
|
||||
|
|
Loading…
Reference in New Issue
Block a user