From cdc9f6f570b8d7935ba461f2db09c8177b587144 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 27 May 2024 19:08:21 +0200 Subject: [PATCH] feat: h2o pressure conversion (closes #44) --- .idea/deploymentTargetSelector.xml | 10 ++++++++++ .../calcyou/data/converters/PressureConverter.kt | 3 ++- app/src/main/res/values/strings.xml | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .idea/deploymentTargetSelector.xml diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml new file mode 100644 index 0000000..b268ef3 --- /dev/null +++ b/.idea/deploymentTargetSelector.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/net/youapps/calcyou/data/converters/PressureConverter.kt b/app/src/main/java/net/youapps/calcyou/data/converters/PressureConverter.kt index 399d3cd..e19eb06 100644 --- a/app/src/main/java/net/youapps/calcyou/data/converters/PressureConverter.kt +++ b/app/src/main/java/net/youapps/calcyou/data/converters/PressureConverter.kt @@ -11,6 +11,7 @@ class PressureConverter : UnitConverter { FactorUnit(R.string.bar, 1E5), FactorUnit(R.string.millibar, 1E2), FactorUnit(R.string.atmosphere, 101325.0), - FactorUnit(R.string.psi, 6894.757293168) // Pounds per Square Inch + FactorUnit(R.string.psi, 6894.757293168), // Pounds per Square Inch + FactorUnit(R.string.h2o, 249.082), // Inches of water ) } \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1789b63..82779d0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -130,6 +130,7 @@ Millibar Atmosphere PSI + H2O (Inches of water) Lumen Candela Lux