From a64c528bcb6c2b74f55ca0fcdf295565129876c3 Mon Sep 17 00:00:00 2001 From: Feyzu Date: Sun, 17 Jul 2022 22:48:47 +0200 Subject: [PATCH] Pendel Logic READY Pendelsession information save in profile in progress new fragment "fragment_start_pendulum" finished Measured results saved in UpdateFragment Recyclerview based und User Id successfully --- app/src/main/AndroidManifest.xml | 2 +- .../acapendulum20/canvas/CanvasPendulum.kt | 8 ++-- .../acapendulum20/data/MeasurementDao.kt | 2 +- .../example/acapendulum20/data/SessionDao.kt | 4 -- .../acapendulum20/data/SessionDatabase.kt | 4 -- .../fragments/pendulum/PendulumFragment.kt | 47 ++++++++++++++----- .../pendulum/StartPendulumFragment.kt | 2 +- .../{SessionList.kt => MeasurementList.kt} | 15 +++--- .../fragments/update/UpdateFragment.kt | 8 ++-- .../acapendulum20/model/Measurement.kt | 3 +- .../example/acapendulum20/model/Session.kt | 22 --------- .../repository/SessionRepository.kt | 4 -- .../viewmodel/SessionViewmodel.kt | 4 -- .../res/layout/custom_row_measurement.xml | 14 ++++++ 14 files changed, 69 insertions(+), 70 deletions(-) delete mode 100644 app/src/main/java/com/example/acapendulum20/data/SessionDao.kt delete mode 100644 app/src/main/java/com/example/acapendulum20/data/SessionDatabase.kt rename app/src/main/java/com/example/acapendulum20/fragments/update/{SessionList.kt => MeasurementList.kt} (66%) delete mode 100644 app/src/main/java/com/example/acapendulum20/model/Session.kt delete mode 100644 app/src/main/java/com/example/acapendulum20/repository/SessionRepository.kt delete mode 100644 app/src/main/java/com/example/acapendulum20/viewmodel/SessionViewmodel.kt diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 4d9c6dd..9d08d76 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ + android:versionCode="3"> > @Query("SELECT * FROM measurement_table ") diff --git a/app/src/main/java/com/example/acapendulum20/data/SessionDao.kt b/app/src/main/java/com/example/acapendulum20/data/SessionDao.kt deleted file mode 100644 index 4f36b1c..0000000 --- a/app/src/main/java/com/example/acapendulum20/data/SessionDao.kt +++ /dev/null @@ -1,4 +0,0 @@ -package com.example.acapendulum20.data - -class SessionDao { -} \ No newline at end of file diff --git a/app/src/main/java/com/example/acapendulum20/data/SessionDatabase.kt b/app/src/main/java/com/example/acapendulum20/data/SessionDatabase.kt deleted file mode 100644 index 60099bd..0000000 --- a/app/src/main/java/com/example/acapendulum20/data/SessionDatabase.kt +++ /dev/null @@ -1,4 +0,0 @@ -package com.example.acapendulum20.data - -class SessionDatabase { -} \ No newline at end of file diff --git a/app/src/main/java/com/example/acapendulum20/fragments/pendulum/PendulumFragment.kt b/app/src/main/java/com/example/acapendulum20/fragments/pendulum/PendulumFragment.kt index 91db921..85b8b74 100644 --- a/app/src/main/java/com/example/acapendulum20/fragments/pendulum/PendulumFragment.kt +++ b/app/src/main/java/com/example/acapendulum20/fragments/pendulum/PendulumFragment.kt @@ -46,7 +46,8 @@ class PendulumFragment : Fragment() { val saveButton = view.findViewById