Skip to content

PAINTROID-806: SourceFile - org.catrobat.paintroid.MainActivity.onCreate#1364

Open
icarusiftctts wants to merge 3 commits intoCatrobat:developfrom
icarusiftctts:develop
Open

PAINTROID-806: SourceFile - org.catrobat.paintroid.MainActivity.onCreate#1364
icarusiftctts wants to merge 3 commits intoCatrobat:developfrom
icarusiftctts:develop

Conversation

@icarusiftctts
Copy link

@icarusiftctts icarusiftctts commented Mar 5, 2026

Please enter a short description of your pull request and add a reference to the Jira ticket.

Fixed fragment restoration crash in MainActivity (NoSuchMethodException) by adding safe fragment retrieval and replacing unsafe cast. Should avoid duplicate fragment creation. This is highlighted as Problem 1.

SourceFile - org.catrobat.paintroid.MainActivity.onCreate - https://catrobat.atlassian.net/browse/PAINTROID-806

Your checklist for this pull request

Please review the contributing guidelines and wiki pages of this repository.

  • Include the name of the Jira ticket in the PR’s title
  • Include a summary of the changes plus the relevant context
  • Choose the proper base branch (develop)
  • Confirm that the changes follow the project’s coding guidelines
  • Verify that the changes generate no compiler or linter warnings
  • Perform a self-review of the changes
  • Verify to commit no other files than the intentionally changed ones
  • Include reasonable and readable tests verifying the added or changed behavior
  • Confirm that new and existing unit tests pass locally
  • Check that the commits’ message style matches the project’s guideline
  • Stick to the project’s gitflow workflow
  • Verify that your changes do not have any conflicts with the base branch
  • After the PR, verify that all CI checks have passed
  • Post a message in the #paintroid Slack channel and ask for a code reviewer

@icarusiftctts
Copy link
Author

Handled corrupted temporary autosave file (KryoBufferUnderflowException)

The autosave file can become truncated, which causes Kryo to throw BufferUnderflowException.

fix catches the exception and deletes the corrupted file, starting a new canvas.

This should fix Problem 2.

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.

1 participant