Fixed Issue#9 . Now correctly works on RTL locals.

This commit is contained in:
Christopher Beckmann 2016-03-29 18:37:25 +02:00
parent 1362f3bbed
commit 7e3f4f28ba
2 changed files with 6 additions and 0 deletions

View file

@ -205,6 +205,11 @@ public class SudokuFieldLayout extends RelativeLayout implements IHighlightChang
public void dispatchDraw(Canvas canvas) { public void dispatchDraw(Canvas canvas) {
super.dispatchDraw(canvas); super.dispatchDraw(canvas);
if(gameController == null) {
return;
}
// draw error list // draw error list
p = new Paint(Paint.ANTI_ALIAS_FLAG); p = new Paint(Paint.ANTI_ALIAS_FLAG);
p.setStyle(Paint.Style.STROKE); p.setStyle(Paint.Style.STROKE);

View file

@ -13,6 +13,7 @@
<org.secuso.privacyfriendlysudoku.ui.view.SudokuFieldLayout <org.secuso.privacyfriendlysudoku.ui.view.SudokuFieldLayout
android:id="@+id/sudokuLayout" android:id="@+id/sudokuLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layoutDirection="ltr"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:clickable="true" android:clickable="true"
android:gravity="center" /> android:gravity="center" />