anitab-org / powerup-android

PowerUp is an educational choose-your-own-adventure game that utilizes a users uploaded curriculum to empower pre-adolescents to take charge of their reproductive health. This is the Android version of the game.
GNU General Public License v2.0
116 stars 430 forks source link

Fixed the ending case for save blood #1296

Closed Rimjhim28 closed 6 years ago

Rimjhim28 commented 6 years ago

Description

The error was in SaveTheBloodEndActivity where the variable OpenedStatus was not reset to false While fixing this issue, I came across another problem. Once all the scenes in Level 2 are played, no matter which scene is chosen for replay, the home scenario was launched always. The problem was in switch case block inside the click listener for replay button. I fixed this as well

Fixes #1295

Type of Change:

Code/Quality Assurance Only

How Has This Been Tested?

Steps to reproduce:

  1. Complete the save the blood game
  2. Launch map again from the game over screen
  3. Choose any scenario to replay The selected scenario will be replayed whereas initially Save Blood game was always launched.

Checklist:

Delete irrelevant options.

Code/Quality Assurance Only