Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Unnecessary Variables #2

Merged
merged 1 commit into from
Oct 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 1 addition & 10 deletions app/src/main/java/com/amw/dragdrop/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,9 @@ public class MainActivity extends AppCompatActivity {

private static final String TAG = "DRAG_DROP";

Button drag;
LinearLayoutCompat top, bottom;
TextView totalTV, successTV;
int total, fail, success = 0;

LinearLayoutCompat bottom;
ImageView iv1, iv2, iv3, iv4, iv5, iv6, iv7, iv8, cIV;
int clicked, lastClicked, completed = 0;
boolean isEn = false;
MediaPlayer player;

@SuppressLint("ClickableViewAccessibility")
Expand All @@ -43,11 +38,7 @@ protected void onCreate(Bundle savedInstanceState) {

player = MediaPlayer.create(MainActivity.this, R.raw.drop);

// drag = (Button) findViewById(R.id.drag);
// top = (LinearLayoutCompat) findViewById(R.id.top);
bottom = (LinearLayoutCompat) findViewById(R.id.bottom);
// totalTV = (TextView) findViewById(R.id.total);
// successTV = (TextView) findViewById(R.id.success);

iv1 = (ImageView) findViewById(R.id.iv1);
iv2 = (ImageView) findViewById(R.id.iv2);
Expand Down