Update message type after fetching participants
This commit is contained in:
parent
dd22467835
commit
52a694a1c4
|
@ -15,6 +15,7 @@ import android.provider.Telephony
|
||||||
import android.telephony.SmsMessage
|
import android.telephony.SmsMessage
|
||||||
import android.telephony.SubscriptionManager
|
import android.telephony.SubscriptionManager
|
||||||
import android.text.TextUtils
|
import android.text.TextUtils
|
||||||
|
import android.util.Log
|
||||||
import android.util.TypedValue
|
import android.util.TypedValue
|
||||||
import android.view.*
|
import android.view.*
|
||||||
import android.view.inputmethod.EditorInfo
|
import android.view.inputmethod.EditorInfo
|
||||||
|
@ -244,6 +245,7 @@ class ThreadActivity : SimpleActivity() {
|
||||||
|
|
||||||
setupThreadTitle()
|
setupThreadTitle()
|
||||||
setupSIMSelector()
|
setupSIMSelector()
|
||||||
|
updateMessageType()
|
||||||
callback()
|
callback()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -312,7 +314,6 @@ class ThreadActivity : SimpleActivity() {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
setupThreadTitle()
|
setupThreadTitle()
|
||||||
setupSIMSelector()
|
setupSIMSelector()
|
||||||
updateMessageType()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -442,8 +443,8 @@ class ThreadActivity : SimpleActivity() {
|
||||||
numbers.add(it.normalizedNumber)
|
numbers.add(it.normalizedNumber)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val newThreadId = getThreadId(numbers)
|
val newThreadId = getThreadId(numbers)
|
||||||
|
Log.d(this::class.java.simpleName, "participants: ${numbers.size}")
|
||||||
if (threadId != newThreadId) {
|
if (threadId != newThreadId) {
|
||||||
hideKeyboard()
|
hideKeyboard()
|
||||||
Intent(this, ThreadActivity::class.java).apply {
|
Intent(this, ThreadActivity::class.java).apply {
|
||||||
|
|
Loading…
Reference in New Issue