mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-22 13:48:52 +01:00
Focus message box after sending a message (pt 2)
This commit is contained in:
@@ -852,4 +852,11 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
|||||||
|
|
||||||
override fun onBackPressed() = backPressedIntent.onNext(Unit)
|
override fun onBackPressed() = backPressedIntent.onNext(Unit)
|
||||||
|
|
||||||
|
override fun focusMessage() {
|
||||||
|
runOnUiThread {
|
||||||
|
val message = findViewById<QkEditText>(R.id.message)
|
||||||
|
if (message !== null) message.requestFocus()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,5 +112,6 @@ interface ComposeView : QkView<ComposeState> {
|
|||||||
fun showDeleteDialog( messages: List<Long>)
|
fun showDeleteDialog( messages: List<Long>)
|
||||||
fun showClearCurrentMessageDialog()
|
fun showClearCurrentMessageDialog()
|
||||||
fun startSpeechRecognition()
|
fun startSpeechRecognition()
|
||||||
|
fun focusMessage()
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1101,7 +1101,7 @@ class ComposeViewModel @Inject constructor(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
.autoDisposable(view.scope())
|
.autoDisposable(view.scope())
|
||||||
.subscribe()
|
.subscribe{view.focusMessage()}
|
||||||
|
|
||||||
// View QKSMS+
|
// View QKSMS+
|
||||||
view.viewQksmsPlusIntent
|
view.viewQksmsPlusIntent
|
||||||
|
|||||||
Reference in New Issue
Block a user