From ac0a036035d059ce0729637ad16287c0a1a92870 Mon Sep 17 00:00:00 2001 From: Ax333l Date: Fri, 5 Apr 2024 20:04:27 +0200 Subject: [PATCH] refactor: fix more warnings --- .../manager/ui/component/bundle/ImportBundleDialog.kt | 4 ++-- .../java/app/revanced/manager/ui/screen/DashboardScreen.kt | 2 +- app/src/main/res/values/strings.xml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/app/revanced/manager/ui/component/bundle/ImportBundleDialog.kt b/app/src/main/java/app/revanced/manager/ui/component/bundle/ImportBundleDialog.kt index b6bb3e3a..1402cf82 100644 --- a/app/src/main/java/app/revanced/manager/ui/component/bundle/ImportBundleDialog.kt +++ b/app/src/main/java/app/revanced/manager/ui/component/bundle/ImportBundleDialog.kt @@ -37,12 +37,12 @@ fun ImportBundleDialog( onDismissRequest: () -> Unit, onRemoteSubmit: (String, String, Boolean) -> Unit, onLocalSubmit: (String, Uri, Uri?) -> Unit, - bundleType: BundleType + initialBundleType: BundleType ) { var name by rememberSaveable { mutableStateOf("") } var remoteUrl by rememberSaveable { mutableStateOf("") } var autoUpdate by rememberSaveable { mutableStateOf(true) } - var bundleType by rememberSaveable { mutableStateOf(bundleType) } + var bundleType by rememberSaveable { mutableStateOf(initialBundleType) } var patchBundle by rememberSaveable { mutableStateOf(null) } var integrations by rememberSaveable { mutableStateOf(null) } diff --git a/app/src/main/java/app/revanced/manager/ui/screen/DashboardScreen.kt b/app/src/main/java/app/revanced/manager/ui/screen/DashboardScreen.kt index 489fe8f1..2974e65a 100644 --- a/app/src/main/java/app/revanced/manager/ui/screen/DashboardScreen.kt +++ b/app/src/main/java/app/revanced/manager/ui/screen/DashboardScreen.kt @@ -115,7 +115,7 @@ fun DashboardScreen( dismiss() vm.createRemoteSource(name, url, autoUpdate) }, - bundleType = it + initialBundleType = it ) } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 04a072ce..09903146 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -26,7 +26,7 @@ Missing Error - %1s • %2d available patches + %1$s • %2$d available patches Start patching the application Patch selection and options @@ -337,4 +337,4 @@ Import local files from your storage, does not automatically update Import remote files from a URL, can automatically update Recommended - \ No newline at end of file +