Skip to content

Choosing an app for an audio or video link can crash the app #485

Description

@jim-daf

When a link in an article points to an audio or video file, ArticleWebViewClient shows a small dialog with Display, Download and Choose app. Picking Choose app builds an Intent.ACTION_VIEW with the media type and calls startActivity without a guard. If no app can handle that type the app crashes with ActivityNotFoundException.

The general link branch in the same method is already wrapped in a try/catch. The Choose app path for audio and video is not.

Guarding that launch the same way would keep the app running when no media app is installed.

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