fix
This commit is contained in:
parent
fed2839a72
commit
0f631b1d47
|
@ -259,7 +259,7 @@ object SmsCommunicatorPlugin : PluginBase(PluginDescription()
|
||||||
val actualBG = DatabaseHelper.actualBg()
|
val actualBG = DatabaseHelper.actualBg()
|
||||||
val lastBG = DatabaseHelper.lastBg()
|
val lastBG = DatabaseHelper.lastBg()
|
||||||
var reply = ""
|
var reply = ""
|
||||||
val units = ProfileFunctions.getInstance().profileUnits
|
val units = ProfileFunctions.getSystemUnits()
|
||||||
if (actualBG != null) {
|
if (actualBG != null) {
|
||||||
reply = MainApp.gs(R.string.sms_actualbg) + " " + actualBG.valueToUnitsToString(units) + ", "
|
reply = MainApp.gs(R.string.sms_actualbg) + " " + actualBG.valueToUnitsToString(units) + ", "
|
||||||
} else if (lastBG != null) {
|
} else if (lastBG != null) {
|
||||||
|
@ -428,7 +428,7 @@ object SmsCommunicatorPlugin : PluginBase(PluginDescription()
|
||||||
receivedSms.processed = true
|
receivedSms.processed = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
val list = store.profileList
|
val list = store.getProfileList()
|
||||||
if (splitted[1].toUpperCase(Locale.getDefault()) == "STATUS") {
|
if (splitted[1].toUpperCase(Locale.getDefault()) == "STATUS") {
|
||||||
sendSMS(Sms(receivedSms.phoneNumber, ProfileFunctions.getInstance().profileName))
|
sendSMS(Sms(receivedSms.phoneNumber, ProfileFunctions.getInstance().profileName))
|
||||||
} else if (splitted[1].toUpperCase(Locale.getDefault()) == "LIST") {
|
} else if (splitted[1].toUpperCase(Locale.getDefault()) == "LIST") {
|
||||||
|
|
Loading…
Reference in a new issue