Skip to content

Commit

Permalink
Implement "cancel" button in options
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Apr 21, 2016
1 parent 7be9111 commit 8ddf779
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/src/main/java/fr/remram/taquindroid/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ public void onClick(View v)
Options.this.finish();
}
});

final Button cancel = (Button) findViewById(R.id.options_cancel);
cancel.setOnClickListener(new View.OnClickListener() {
public void onClick(View v)
{
Options.this.setResult(RESULT_CANCELED);
Options.this.finish();
}
});
}

/** Called when the image have been selected. */
Expand Down

0 comments on commit 8ddf779

Please sign in to comment.