Skip to content

Commit

Permalink
minimalist
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyro9922 committed Oct 27, 2018
1 parent 37de6c9 commit 87cd9c4
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,36 @@ public void onClick(View v) {
startActivity(i);
}
});

/**
* RESET BUTTON
*/
reset.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

//GEAR RESET
new SharedPrefClass(GearActivity.this).saveGearActivityState("gear", 0);

//TIMMINGS CLEARED
new SharedPrefClass(GearActivity.this).saveTimings("timings1", "");
new SharedPrefClass(GearActivity.this).saveTimings("timings2", "");
new SharedPrefClass(GearActivity.this).saveTimings("timings3", "");

//PARTICIPANTS CLEARED
SharedPrefClass storeMobile1 = new SharedPrefClass(GearActivity.this);
storeMobile1.saveMobile("mobile1", "");

SharedPrefClass storeMobile2 = new SharedPrefClass(GearActivity.this);
storeMobile2.saveMobile("mobile2", "");

SharedPrefClass storeMobile3 = new SharedPrefClass(GearActivity.this);
storeMobile3.saveMobile("mobile3", "");

Intent i = new Intent(GearActivity.this,MainActivity.class);
startActivity(i);
}
});
}


Expand Down

0 comments on commit 87cd9c4

Please sign in to comment.