screen state string

This commit is contained in:
jens 2022-02-23 18:09:21 +01:00
parent 5af59e1754
commit 481e4d1896

View File

@ -1579,7 +1579,7 @@ public class Trigger
state = Miscellaneous.getAnyContext().getString(R.string.off); state = Miscellaneous.getAnyContext().getString(R.string.off);
break; break;
case "1": case "1":
state = Miscellaneous.getAnyContext().getString(R.string.on); state = Miscellaneous.getAnyContext().getString(R.string.on);
break; break;
case "2": case "2":
state = Miscellaneous.getAnyContext().getString(R.string.unlocked); state = Miscellaneous.getAnyContext().getString(R.string.unlocked);
@ -1587,6 +1587,8 @@ public class Trigger
default: default:
state = Miscellaneous.getAnyContext().getString(R.string.unknown); state = Miscellaneous.getAnyContext().getString(R.string.unknown);
} }
returnString.append(String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.screenIs), state));
break;
case deviceStarts: case deviceStarts:
// This type doesn't have an activate/deactivate equivalent // This type doesn't have an activate/deactivate equivalent
returnString.append(Miscellaneous.getAnyContext().getResources().getString(R.string.deviceHasJustStarted)); returnString.append(Miscellaneous.getAnyContext().getResources().getString(R.string.deviceHasJustStarted));