AudioRecorderView icon indicating copy to clipboard operation
AudioRecorderView copied to clipboard

On slide to cancel full screen size the button lost hist functionality

Open fresnohernandez99 opened this issue 2 years ago • 4 comments

untitled In the las try of this gif I slide to cancel. and later turns impossible to cancel the new recording

fresnohernandez99 avatar Jul 20 '22 15:07 fresnohernandez99

TO fixed I found on RecordCircleView.kt need to change the conditional at line 124. The value inside dipInt most be changed from 57f to 100f: if (startTranslation - lockAnimatedTranslation >= context.dipInt(100f)) { sendButtonVisible = true return 2 }

fresnohernandez99 avatar Jul 20 '22 18:07 fresnohernandez99

Can demo reproduce this?

Tougee avatar Jul 21 '22 02:07 Tougee

Can demo reproduce this? I cant share the code on use. But i can explain:

  • On slide to cancel, if u take the action to the end of the left edge of the screen it freeze the btn. It will not work anymore if u don't reload the view. I found that changing the value in RecordCircleView from 57F to 100F it will not make that behavior again.

fresnohernandez99 avatar Jul 23 '22 14:07 fresnohernandez99

if u take the action to the end of the left edge of the screen it freeze the btn

Can not reproduce this action.

if (startTranslation - lockAnimatedTranslation >= context.dipInt(100f)) only increase the distance to change state from slidable to locked.

AFAIK it works on the demo, so if your use case has a problem, you can fork this project and do your own fix.

Tougee avatar Jul 28 '22 02:07 Tougee