Skip to content

Commit

Permalink
Bug fix for field diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
widavies committed Mar 9, 2019
1 parent 1a1684e commit f2ecc0c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ android {
applicationId "com.cpjd.roblu"
minSdkVersion 19
targetSdkVersion 28
versionCode 70
versionName "4.5.11"
versionCode 71
versionName "4.5.12"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

javaCompileOptions {
Expand Down
11 changes: 10 additions & 1 deletion app/src/main/java/com/cpjd/roblu/ui/images/Drawing.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,16 @@ protected void onCreate(Bundle savedInstanceState) {
}

LinearLayout layout = findViewById(R.id.drawing_layout);
layout.setBackgroundResource(getIntent().getIntExtra("fieldDiagramID", R.drawable.field2018));
switch(getIntent().getIntExtra("fieldDiagramID", 0)) {
case 2019:
layout.setBackgroundResource(R.drawable.field2019);
break;
case 2018:
layout.setBackgroundResource(R.drawable.field2018);
break;
default:
layout.setBackgroundResource(R.drawable.field2018);
}

this.canvas.setBaseColor(rui.getBackground());
this.canvas.setPaintStrokeWidth(7F);
Expand Down

0 comments on commit f2ecc0c

Please sign in to comment.