Skip to content

Commit

Permalink
Remove unnecessary method
Browse files Browse the repository at this point in the history
* Remove setButtonToCurrentTime() method
  • Loading branch information
mehdibaha committed Aug 1, 2015
1 parent 59ebf80 commit e71354e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions app/src/main/java/com/insa/burnd/view/CreateActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@

public class CreateActivity extends BaseActivity implements Connection.ResponseListener {
private final CreateActivity activity = this;

final private int MAX_DURATION_PARTY = 12;
@Bind(R.id.edittext_create_party_name) EditText etPartyName;
@Bind(R.id.edittext_create_party_pass) EditText etPartyPass;
@Bind(R.id.til_create_party_name) TextInputLayout tilPartyName;
@Bind(R.id.til_create_party_pass) TextInputLayout tilPartyPass;
@Bind(R.id.edittext_location) EditText etLocation;
@Bind(R.id.toolbar_create) Toolbar toolbar;
@Bind(R.id.time) Button buttonTime;

final private int MAX_DURATION_PARTY = 12;
private double latitude = 0;
private double longitude = 0;
private Calendar now ;
Expand Down Expand Up @@ -89,13 +87,6 @@ private void initToolbar() {
}
}

private void setButtonToCurrentTime() {
now = Calendar.getInstance();
hours = now.get(Calendar.HOUR_OF_DAY);
minutes = now.get(Calendar.MINUTE);
buttonTime.setText(hours + ":" + minutes);
}

private void setButtonToDefaultEndTime() {
now = Calendar.getInstance();
hours = now.get(Calendar.HOUR_OF_DAY)+8;
Expand Down

0 comments on commit e71354e

Please sign in to comment.