commit | 25b2c96bb017a302388ecd09fd98d9a49831262e | [log] [tgz] |
---|---|---|
author | LuK1337 <priv.luk@gmail.com> | Sat Apr 15 19:23:26 2023 +0200 |
committer | Sebastiano Barezzi <seba@sebaubuntu.dev> | Tue Apr 25 19:09:15 2023 +0200 |
tree | b7ea85b5e801ffecadaa92e68e9b562df6fe3140 | |
parent | 2ff7e0d82fcb4f46af68a85e8b9e1c64f4510084 [diff] |
Aperture: Set `movementMethod` to null when actions are present This prevents LinkMovementMethod from eating click events when actions are available. Change-Id: I9dc60152a8b7d9e9a9e99a20ff989ad826244f53
diff --git a/app/src/main/java/org/lineageos/aperture/QrImageAnalyzer.kt b/app/src/main/java/org/lineageos/aperture/QrImageAnalyzer.kt index 1b3fe00..2750b72 100644 --- a/app/src/main/java/org/lineageos/aperture/QrImageAnalyzer.kt +++ b/app/src/main/java/org/lineageos/aperture/QrImageAnalyzer.kt
@@ -108,6 +108,7 @@ ) { with(textClassification.actions[0]) { bottomSheetDialogCardView.setOnClickListener { actionIntent.send() } + bottomSheetDialogData.movementMethod = null bottomSheetDialogTitle.text = this.title this.icon.loadDrawableAsync(activity, { bottomSheetDialogIcon.setImageDrawable(it)