79401829

Date: 2025-01-31 05:29:24
Score: 0.5
Natty:
Report link

so i got the solution

KeyEvent.KEYCODE_DPAD_UP -> {
                                    if (selectedRow > 0) {
                                        selectedRow--
                                        isUpFromList = false
                                    } else {
                                        scope.launch{
                                            isFocusOnListing = false
                                            isUpFromList = true
                                            delay(50)
                                            setFocusContinueWatch.freeFocus()
                                            setFocusOnWatchNow.requestFocus()
                                        }
                                    }

i just did the whole operation in a coroutine scope and added a 50milli delay

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Priyanshu Raj