fix(YouTube - ExternalDownloads): Trim whitespace from package name (#469)

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
Autist69420 2023-08-30 23:06:47 +02:00 committed by GitHub
parent 04c81b39e9
commit 61d997e1db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,8 @@ public class ExternalDownloadButton extends BottomControlButton {
LogHelper.printDebug(() -> "External download button clicked");
final var context = view.getContext();
var downloaderPackageName = SettingsEnum.EXTERNAL_DOWNLOADER_PACKAGE_NAME.getString();
// Trim string to avoid any accidental whitespace.
var downloaderPackageName = SettingsEnum.EXTERNAL_DOWNLOADER_PACKAGE_NAME.getString().trim();
boolean packageEnabled = false;
try {