Skip to content

Commit

Permalink
switch to localizedMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
keepalivedev committed Jul 30, 2024
1 parent 83f0632 commit 49ca6bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/io/keepalive/android/AlertFunctions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fun getSMSManager(context: Context): SmsManager? {
}
}
} catch (e: Exception) {
DebugLogger.d("sendAlertMessage", context.getString(R.string.debug_log_exception_while_getting_sms_manager, e.message), e)
DebugLogger.d("sendAlertMessage", context.getString(R.string.debug_log_exception_while_getting_sms_manager, e.localizedMessage), e)

// if the above fails default to the normal method of getting the SMS manager
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
Expand Down Expand Up @@ -255,7 +255,7 @@ class AlertMessageSender(private val context: Context) {
}

} catch (e: Exception) {
DebugLogger.d("sendAlertMessage", context.getString(R.string.debug_log_failed_sending_sms, contact.phoneNumber, e.message), e)
DebugLogger.d("sendAlertMessage", context.getString(R.string.debug_log_failed_sending_sms, contact.phoneNumber, e.localizedMessage), e)

// if we failed while sending the SMS then send a notification
// to let the user know
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class BootBroadcastReceiver : BroadcastReceiver() {
}
}
} catch (e: Exception) {
DebugLogger.d(tag, context.getString(R.string.debug_log_boot_receiver_exception, e.message), e)
DebugLogger.d(tag, context.getString(R.string.debug_log_boot_receiver_exception, e.localizedMessage), e)
}
}
}

0 comments on commit 49ca6bb

Please sign in to comment.