Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
"Unfortunately Stopped" issue fixed
There was a small issue. On pressing the "Next" button, while the last Flash Card is on display, was making the app to stop unfortunately.
This issue has been fixed.
  • Loading branch information
srujanjha committed Mar 6, 2015
commit 6a57bc4d42652b644b965c410b759ef2fd8f1369
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void onClick(View v) {
@Override
public void onClick(View v) {

if (iQuestionIndex < mCardList.size()) {
if (iQuestionIndex < mCardList.size()-1) {
isFlipped = false;
iQuestionIndex++;
questionView.setVisibility(View.VISIBLE);
Expand All @@ -115,6 +115,7 @@ public void onClick(View v) {
populateQuestion(iQuestionIndex);

} else {
finish();
/*Intent myIntent = new Intent(FlashActivity.this,
ScoreActivity.class);
startActivity(myIntent);
Expand Down