Skip to content

PAINTROID-781: Fix crash on image import/export in PocketCode#1360

Open
Ayush-Patel-56 wants to merge 1 commit intoCatrobat:developfrom
Ayush-Patel-56:feature/PAINTROID-781-fix-crash-import-export-pocketcode
Open

PAINTROID-781: Fix crash on image import/export in PocketCode#1360
Ayush-Patel-56 wants to merge 1 commit intoCatrobat:developfrom
Ayush-Patel-56:feature/PAINTROID-781-fix-crash-import-export-pocketcode

Conversation

@Ayush-Patel-56
Copy link

Jira-ID: PAINTROID-781

Description
Fixed a crash that occurred when Paintroid was opened via PocketCode for image import/export. The issue was caused by FileIO.parseFileName failing to safely handle file:// URIs or exceptions during ContentResolver queries.

Changes

  • Added a try-catch block in FileIO.parseFileName to handle potential exceptions during content query.
  • Added fallback logic to extract the filename from the URI path if the content query fails or returns null.
  • Removed deprecated MaxPermSize JVM argument from gradle.properties which was causing build issues.

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