From 0c00b9b917b90ddf545588f3dd53873a0a11aec1 Mon Sep 17 00:00:00 2001 From: Marc Nause Date: Sun, 22 Dec 2024 22:33:04 +0100 Subject: [PATCH] fix wrong use of constants --- app/src/main/java/io/pslab/sensors/AbstractSensorActivity.java | 2 +- app/src/main/java/io/pslab/sensors/SensorAPDS9960.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/pslab/sensors/AbstractSensorActivity.java b/app/src/main/java/io/pslab/sensors/AbstractSensorActivity.java index b9478cfcf..7b1928366 100644 --- a/app/src/main/java/io/pslab/sensors/AbstractSensorActivity.java +++ b/app/src/main/java/io/pslab/sensors/AbstractSensorActivity.java @@ -31,7 +31,7 @@ abstract class AbstractSensorActivity extends AppCompatActivity { private static final String TAG = AbstractSensorActivity.class.getSimpleName(); private static final String KEY_PLAY = TAG + "_play"; - private static final String KEY_RUN_INDEFINITELY = TAG + "_runIndefinitely"; + private static final String KEY_RUN_INDEFINITELY = TAG + "_run_indefinitely"; private static final String KEY_TIME_GAP = TAG + "_time_gap"; private static final String KEY_FLAG = TAG + "_flag"; private static final String KEY_START_TIME = TAG + "_start_time"; diff --git a/app/src/main/java/io/pslab/sensors/SensorAPDS9960.java b/app/src/main/java/io/pslab/sensors/SensorAPDS9960.java index 047ca8fdf..7ef54a118 100644 --- a/app/src/main/java/io/pslab/sensors/SensorAPDS9960.java +++ b/app/src/main/java/io/pslab/sensors/SensorAPDS9960.java @@ -176,7 +176,7 @@ protected void onSaveInstanceState(@NonNull Bundle outState) { outState.putString(KEY_VALUE_GREEN, tvSensorAPDS9960Green.getText().toString()); outState.putString(KEY_VALUE_BLUE, tvSensorAPDS9960Blue.getText().toString()); outState.putString(KEY_VALUE_CLEAR, tvSensorAPDS9960Clear.getText().toString()); - outState.putString(KEY_ENTRIES_PROXIMITY, tvSensorAPDS9960Proximity.getText().toString()); + outState.putString(KEY_VALUE_PROXIMITY, tvSensorAPDS9960Proximity.getText().toString()); outState.putString(KEY_VALUE_GESTURE, tvSensorAPDS9960Gesture.getText().toString()); outState.putParcelableArrayList(KEY_ENTRIES_LUX, entriesLux);