forked from github/wulkanowy-mirror
Fix the application finish after selecting an account (#286)
This commit is contained in:

committed by
Mikołaj Pich

parent
040857ba20
commit
8db73e9459
@ -72,6 +72,10 @@ class SendMessageActivity : BaseActivity(), SendMessageView {
|
||||
else false
|
||||
}
|
||||
|
||||
override fun onSupportNavigateUp(): Boolean {
|
||||
return presenter.onUpNavigate()
|
||||
}
|
||||
|
||||
override fun setReportingUnit(unit: ReportingUnit) {
|
||||
sendMessageFromTextView.setText(unit.senderName)
|
||||
}
|
||||
|
@ -47,6 +47,11 @@ class SendMessagePresenter @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
fun onUpNavigate(): Boolean {
|
||||
view?.popView()
|
||||
return true
|
||||
}
|
||||
|
||||
private fun loadData(message: Message?) {
|
||||
var reportingUnit: ReportingUnit? = null
|
||||
var recipients: List<Recipient> = emptyList()
|
||||
|
Reference in New Issue
Block a user