Skip to content

fix: Add a reset progress button - #50

Open
webbrain-one wants to merge 1 commit into
atorch:masterfrom
webbrain-one:webbrain/issue-24
Open

fix: Add a reset progress button#50
webbrain-one wants to merge 1 commit into
atorch:masterfrom
webbrain-one:webbrain/issue-24

Conversation

@webbrain-one

Copy link
Copy Markdown

Closes #24

Bring back the progress reset button to the puzzle selection screen, as
requested in multiple user reviews. Tapping the button clears all solved
puzzles and returns the app to its initial state.

Fixes atorch#24
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:onClick="resetProgress"
android:text="Reset Progress" />

@rillig rillig Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text must be translatable, like in the other buttons.

German: "Fortschritt zurücksetzen"

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a reset-progress button to restore the puzzle app’s initial unsolved state.

Changes:

  • Adds the reset button to the puzzle selection screen.
  • Clears stored puzzle progress and refreshes counters.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
activity_puzzle_selection.xml Adds the reset-progress button.
PuzzleSelection.java Implements progress clearing and UI refresh.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

public void resetProgress(View view) {
SharedPreferences prefs = getSharedPreferences("atorch.statspuzzles.data", Context.MODE_PRIVATE);
prefs.edit().clear().apply();
updateCounter();
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:onClick="resetProgress"
android:text="Reset Progress" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a reset progress button

3 participants