From 4dd50add8b59857534aa3991885658cce961cd00 Mon Sep 17 00:00:00 2001 From: robbi5 Date: Tue, 24 Sep 2024 14:25:58 +0200 Subject: [PATCH] Add progress indicator while bluetooth is pairing (#88) --- .../pretixprint/ui/BluetoothSettingsFragment.kt | 13 ++++++++++++- pretixprint/app/src/main/res/values-de/strings.xml | 1 + pretixprint/app/src/main/res/values/strings.xml | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pretixprint/app/src/main/java/eu/pretix/pretixprint/ui/BluetoothSettingsFragment.kt b/pretixprint/app/src/main/java/eu/pretix/pretixprint/ui/BluetoothSettingsFragment.kt index d8b0a579..d2389d5c 100644 --- a/pretixprint/app/src/main/java/eu/pretix/pretixprint/ui/BluetoothSettingsFragment.kt +++ b/pretixprint/app/src/main/java/eu/pretix/pretixprint/ui/BluetoothSettingsFragment.kt @@ -22,6 +22,10 @@ import androidx.activity.result.contract.ActivityResultContracts import androidx.core.content.ContextCompat import androidx.core.content.IntentCompat import androidx.preference.PreferenceManager +import com.github.razir.progressbutton.attachTextChangeAnimator +import com.github.razir.progressbutton.bindProgressButton +import com.github.razir.progressbutton.hideProgress +import com.github.razir.progressbutton.showProgress import com.google.android.material.textfield.TextInputEditText import eu.pretix.pretixprint.R import eu.pretix.pretixprint.ui.BluetoothDeviceManager.BluetoothDevicePickResultHandler @@ -165,6 +169,8 @@ class BluetoothSettingsFragment : SetupFragment() { ContextCompat.registerReceiver(requireContext(), btStateReceiver, filter, ContextCompat.RECEIVER_EXPORTED) val next = view.findViewById