From 1a66d7e33a7773067759d4ba9818c7aaf0de7a93 Mon Sep 17 00:00:00 2001 From: HeCodes2Much Date: Thu, 5 Sep 2024 13:09:09 +0100 Subject: [PATCH] Fix: Fixed string formatting for numbers in a few places Signed-off-by: HeCodes2Much --- .../ui/bottomsheetdialog/AppInfoBottomSheetFragment.kt | 2 +- .../bottomsheetdialog/PaddingBottomSheetDialogFragment.kt | 2 +- .../ui/bottomsheetdialog/TextBottomSheetDialogFragment.kt | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/github/droidworksstudio/launcher/ui/bottomsheetdialog/AppInfoBottomSheetFragment.kt b/app/src/main/java/com/github/droidworksstudio/launcher/ui/bottomsheetdialog/AppInfoBottomSheetFragment.kt index 872c62b8..8e8e4bfe 100644 --- a/app/src/main/java/com/github/droidworksstudio/launcher/ui/bottomsheetdialog/AppInfoBottomSheetFragment.kt +++ b/app/src/main/java/com/github/droidworksstudio/launcher/ui/bottomsheetdialog/AppInfoBottomSheetFragment.kt @@ -89,7 +89,7 @@ class AppInfoBottomSheetFragment(private val appInfo: AppInfo) : BottomSheetDial bottomSheetLock.text = getString(if (!appInfo.lock) R.string.bottom_dialog_add_to_lock else R.string.bottom_dialog_remove_to_unlock) bottomSheetRename.setText(appInfo.appName) - bottomSheetOrder.text = appInfo.appOrder.toString() + bottomSheetOrder.text = "${appInfo.appOrder}" } } diff --git a/app/src/main/java/com/github/droidworksstudio/launcher/ui/bottomsheetdialog/PaddingBottomSheetDialogFragment.kt b/app/src/main/java/com/github/droidworksstudio/launcher/ui/bottomsheetdialog/PaddingBottomSheetDialogFragment.kt index d738dd26..4ec6e38e 100644 --- a/app/src/main/java/com/github/droidworksstudio/launcher/ui/bottomsheetdialog/PaddingBottomSheetDialogFragment.kt +++ b/app/src/main/java/com/github/droidworksstudio/launcher/ui/bottomsheetdialog/PaddingBottomSheetDialogFragment.kt @@ -53,7 +53,7 @@ class PaddingBottomSheetDialogFragment : BottomSheetDialogFragment() { private fun initView() { bottomDialogHelper.setupDialogStyle(dialog) - binding.selectAppPaddingSize.setText(preferenceHelper.homeAppPadding.toString()) + binding.selectAppPaddingSize.setText("${preferenceHelper.homeAppPadding}") } private fun observeValueChange() { diff --git a/app/src/main/java/com/github/droidworksstudio/launcher/ui/bottomsheetdialog/TextBottomSheetDialogFragment.kt b/app/src/main/java/com/github/droidworksstudio/launcher/ui/bottomsheetdialog/TextBottomSheetDialogFragment.kt index 72796c23..9aee5613 100644 --- a/app/src/main/java/com/github/droidworksstudio/launcher/ui/bottomsheetdialog/TextBottomSheetDialogFragment.kt +++ b/app/src/main/java/com/github/droidworksstudio/launcher/ui/bottomsheetdialog/TextBottomSheetDialogFragment.kt @@ -53,10 +53,10 @@ class TextBottomSheetDialogFragment : BottomSheetDialogFragment() { private fun initView() { bottomDialogHelper.setupDialogStyle(dialog) - binding.selectDateTextSize.setText(preferenceHelper.dateTextSize.toString()) - binding.selectTimeTextSize.setText(preferenceHelper.timeTextSize.toString()) - binding.selectAppTextSize.setText(preferenceHelper.appTextSize.toString()) - binding.selectBatteryTextSize.setText(preferenceHelper.batteryTextSize.toString()) + binding.selectDateTextSize.setText("${preferenceHelper.dateTextSize}") + binding.selectTimeTextSize.setText("${preferenceHelper.timeTextSize}") + binding.selectAppTextSize.setText("${preferenceHelper.appTextSize}") + binding.selectBatteryTextSize.setText("${preferenceHelper.batteryTextSize}") } private fun observeValueChange() {