Skip to content

Commit

Permalink
Code Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddhesh2377 committed Apr 9, 2024
1 parent faf4f13 commit 175dd38
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions app/src/main/java/com/dark/canves/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,14 @@ protected void onCreate(Bundle savedInstanceState) {

drawState.addOnButtonCheckedListener((materialButtonToggleGroup, i, b) -> {
if (b) {
if (i == R.id.free) {
drawingView.DrawFree();
}
if (i == R.id.free) drawingView.DrawFree();

if (i == R.id.box) {
drawingView.DrawBox();
}
if (i == R.id.box) drawingView.DrawBox();

if (i == R.id.line) {
drawingView.DrawLine();
}
if (i == R.id.line) drawingView.DrawLine();

if (i == R.id.circle) drawingView.DrawCircle();

if (i == R.id.circle) {
drawingView.DrawCircle();
}
}
});

Expand Down

0 comments on commit 175dd38

Please sign in to comment.