Skip to content

Commit

Permalink
修改實現,移除部分錯誤的模板
Browse files Browse the repository at this point in the history
  • Loading branch information
qwe7002 committed Nov 30, 2024
1 parent 8cea215 commit b2b9fd5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/src/main/java/com/qwe7002/telegram_rc/SMSReceiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ class SMSReceiver : BroadcastReceiver() {
requestBody.chatId = chatId
requestBody.messageThreadId = preferences.read("message_thread_id", "")
var messageBodyHtml = messageBody
var flashSmsString = ""
if (messages[0]!!.messageClass == SmsMessage.MessageClass.CLASS_0) {
flashSmsString = "\nType: Class 0"
}
val messageHead = "[" + dualSim + context.getString(R.string.receive_sms_head) + "]\n" +
context.getString(R.string.from) + messageAddress + "\n" +
context.getString(R.string.content)
Expand Down Expand Up @@ -155,10 +151,6 @@ class SMSReceiver : BroadcastReceiver() {
if (!dataEnable) {
openData(context)
}
/* rawRequestBodyText = """
${context.getString(R.string.system_message_head)}
${context.getString(R.string.switch_data)}
""".trimIndent()*/
rawRequestBodyText =
context.getString(R.string.system_message_head) + "\n" +
context.getString(R.string.switch_data)
Expand Down

0 comments on commit b2b9fd5

Please sign in to comment.