mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-02-17 20:20:53 +01:00
show the keyboard at opening the thread screen
This commit is contained in:
parent
6330f5952c
commit
0e6f8e1dbf
@ -5,10 +5,7 @@ import android.content.Intent
|
|||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.provider.Telephony
|
import android.provider.Telephony
|
||||||
import android.telephony.SmsManager
|
import android.telephony.SmsManager
|
||||||
import android.view.Gravity
|
import android.view.*
|
||||||
import android.view.Menu
|
|
||||||
import android.view.MenuItem
|
|
||||||
import android.view.View
|
|
||||||
import android.view.inputmethod.EditorInfo
|
import android.view.inputmethod.EditorInfo
|
||||||
import android.widget.LinearLayout
|
import android.widget.LinearLayout
|
||||||
import android.widget.RelativeLayout
|
import android.widget.RelativeLayout
|
||||||
@ -23,8 +20,6 @@ import com.simplemobiletools.smsmessenger.helpers.*
|
|||||||
import com.simplemobiletools.smsmessenger.models.*
|
import com.simplemobiletools.smsmessenger.models.*
|
||||||
import com.simplemobiletools.smsmessenger.receivers.SmsSentReceiver
|
import com.simplemobiletools.smsmessenger.receivers.SmsSentReceiver
|
||||||
import kotlinx.android.synthetic.main.activity_thread.*
|
import kotlinx.android.synthetic.main.activity_thread.*
|
||||||
import kotlinx.android.synthetic.main.activity_thread.new_message_to
|
|
||||||
import kotlinx.android.synthetic.main.activity_thread.selected_contacts
|
|
||||||
import kotlinx.android.synthetic.main.item_selected_contact.view.*
|
import kotlinx.android.synthetic.main.item_selected_contact.view.*
|
||||||
import org.greenrobot.eventbus.EventBus
|
import org.greenrobot.eventbus.EventBus
|
||||||
import org.greenrobot.eventbus.Subscribe
|
import org.greenrobot.eventbus.Subscribe
|
||||||
@ -151,6 +146,9 @@ class ThreadActivity : SimpleActivity() {
|
|||||||
thread_send_message.isClickable = it.isNotEmpty()
|
thread_send_message.isClickable = it.isNotEmpty()
|
||||||
thread_send_message.alpha = if (it.isEmpty()) 0.4f else 0.9f
|
thread_send_message.alpha = if (it.isEmpty()) 0.4f else 0.9f
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
||||||
|
thread_type_message.requestFocus()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun askConfirmDelete() {
|
private fun askConfirmDelete() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user