Skip to content

Raw 'UnsupportedOperationException' toast displayed when attempting to create file in JAR archive #1511

@XYIheng

Description

@XYIheng

Describe the bug
When attempting to create a file inside a JAR archive, the app displays a raw Java exception (java.lang.UnsupportedOperationException: Write) in a Toast message. This exposes internal implementation details and provides a poor user experience.

To Reproduce
Steps to reproduce the behavior:

  1. Open a jar file
  2. Click the Add (FAB) button to create a new file or folder.
  3. see the error: a toast shows "java.lang.UnsupprotedOperationException:Write"

Expected behavior
The app should handle this operation gracefully.

  • A user-friendly error message should be displayed (e.g., "Cannot write to read-only archive" or "Operation not supported").
  • Or the "Add" button should be hidden or disabled if writing to JAR files is not supported.

Video

20251224_195729.mp4

Smartphone (please complete the following information):

  • OS: [Android 11]
  • Version: [1.7.4]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions