Skip to content

Commit

Permalink
Merge pull request #9079 from devlearner/fix-screen-rotate
Browse files Browse the repository at this point in the history
Fix `DownloadDialog` crash on screen rotation
  • Loading branch information
TobiGr authored Oct 10, 2022
2 parents 7fca0e0 + ab99c14 commit 7ab8f9f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ public class DownloadDialog extends DialogFragment
// Instance creation
//////////////////////////////////////////////////////////////////////////*/

public DownloadDialog() {
// Just an empty default no-arg ctor to keep Fragment.instantiate() happy
// otherwise InstantiationException will be thrown when fragment is recreated
// TODO: Maybe use a custom FragmentFactory instead?
}

/**
* Create a new download dialog with the video, audio and subtitle streams from the provided
* stream info. Video streams and video-only streams will be put into a single list menu,
Expand Down

0 comments on commit 7ab8f9f

Please sign in to comment.