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.
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
Code/Quality Assurance Only
Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Steps to reproduce:
Complete the save the blood game
Launch map again from the game over screen
Choose any scenario to replay
The selected scenario will be replayed whereas initially Save Blood game was always launched.
Checklist:
Delete irrelevant options.
[x] My PR follows the style guidelines of this project
[x] I have performed a self-review of my own code or materials
[x] Any dependent changes have been merged
Code/Quality Assurance Only
[x] My changes generate no new warnings
[x] Any dependent changes have been published in downstream modules
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:
Checklist:
Delete irrelevant options.
Code/Quality Assurance Only