fixing some coloring issues
This commit is contained in:
parent
2b01622533
commit
fec69ff4c3
|
@ -36,7 +36,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.25.8'
|
implementation 'com.simplemobiletools:commons:5.25.9'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
|
||||||
implementation 'org.greenrobot:eventbus:3.2.0'
|
implementation 'org.greenrobot:eventbus:3.2.0'
|
||||||
implementation 'com.klinkerapps:android-smsmms:5.2.6'
|
implementation 'com.klinkerapps:android-smsmms:5.2.6'
|
||||||
|
|
|
@ -169,10 +169,10 @@ class ThreadActivity : SimpleActivity() {
|
||||||
getAvailableContacts {
|
getAvailableContacts {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
val adapter = AutoCompleteTextViewAdapter(this, it)
|
val adapter = AutoCompleteTextViewAdapter(this, it)
|
||||||
new_message_to.setAdapter(adapter)
|
add_contact_or_number.setAdapter(adapter)
|
||||||
new_message_to.imeOptions = EditorInfo.IME_ACTION_NEXT
|
add_contact_or_number.imeOptions = EditorInfo.IME_ACTION_NEXT
|
||||||
new_message_to.setOnItemClickListener { _, _, position, _ ->
|
add_contact_or_number.setOnItemClickListener { _, _, position, _ ->
|
||||||
val currContacts = (new_message_to.adapter as AutoCompleteTextViewAdapter).resultList
|
val currContacts = (add_contact_or_number.adapter as AutoCompleteTextViewAdapter).resultList
|
||||||
val selectedContact = currContacts[position]
|
val selectedContact = currContacts[position]
|
||||||
addSelectedContact(selectedContact)
|
addSelectedContact(selectedContact)
|
||||||
}
|
}
|
||||||
|
@ -181,7 +181,7 @@ class ThreadActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupButtons() {
|
private fun setupButtons() {
|
||||||
thread_type_message.setColors(config.textColor, config.primaryColor, config.backgroundColor)
|
updateTextColors(thread_holder)
|
||||||
thread_send_message.applyColorFilter(config.textColor)
|
thread_send_message.applyColorFilter(config.textColor)
|
||||||
confirm_manage_contacts.applyColorFilter(config.textColor)
|
confirm_manage_contacts.applyColorFilter(config.textColor)
|
||||||
thread_add_attachment.applyColorFilter(config.textColor)
|
thread_add_attachment.applyColorFilter(config.textColor)
|
||||||
|
@ -248,8 +248,8 @@ class ThreadActivity : SimpleActivity() {
|
||||||
} else {
|
} else {
|
||||||
showSelectedContacts()
|
showSelectedContacts()
|
||||||
thread_add_contacts.beVisible()
|
thread_add_contacts.beVisible()
|
||||||
new_message_to.requestFocus()
|
add_contact_or_number.requestFocus()
|
||||||
showKeyboard(new_message_to)
|
showKeyboard(add_contact_or_number)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ class ThreadActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun addSelectedContact(contact: Contact) {
|
private fun addSelectedContact(contact: Contact) {
|
||||||
new_message_to.setText("")
|
add_contact_or_number.setText("")
|
||||||
if (participants.map { it.id }.contains(contact.id)) {
|
if (participants.map { it.id }.contains(contact.id)) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
android:importantForAccessibility="no" />
|
android:importantForAccessibility="no" />
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAutoCompleteTextView
|
<com.simplemobiletools.commons.views.MyAutoCompleteTextView
|
||||||
android:id="@+id/new_message_to"
|
android:id="@+id/add_contact_or_number"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/normal_icon_size"
|
android:layout_height="@dimen/normal_icon_size"
|
||||||
android:layout_below="@+id/message_divider_one"
|
android:layout_below="@+id/message_divider_one"
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
android:id="@+id/message_divider_two"
|
android:id="@+id/message_divider_two"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="1px"
|
android:layout_height="1px"
|
||||||
android:layout_below="@+id/new_message_to"
|
android:layout_below="@+id/add_contact_or_number"
|
||||||
android:background="@color/divider_grey"
|
android:background="@color/divider_grey"
|
||||||
android:importantForAccessibility="no" />
|
android:importantForAccessibility="no" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
android:paddingTop="@dimen/normal_margin"
|
android:paddingTop="@dimen/normal_margin"
|
||||||
android:paddingBottom="@dimen/normal_margin"
|
android:paddingBottom="@dimen/normal_margin"
|
||||||
android:textSize="@dimen/bigger_text_size"
|
android:textSize="@dimen/bigger_text_size"
|
||||||
|
android:textColor="@color/md_grey_white"
|
||||||
tools:text="John" />
|
tools:text="John" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
Loading…
Reference in New Issue