Skip to content

Commit ff43333

Browse files
committed
Build of V5.0.8 for play store. Fixes #251
1 parent bf89e52 commit ff43333

5 files changed

Lines changed: 3 additions & 32 deletions

File tree

app/src/main/java/uk/org/openseizuredetector/activity/main/FragmentOsdAlg.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,20 +106,6 @@ protected void updateUi() {
106106
pbDrawable = AppCompatResources.getDrawable(mContext, R.drawable.progress_bar_red);
107107
pb.setProgressDrawable(pbDrawable);
108108

109-
long pSeizurePc;
110-
pSeizurePc = (long) (mConnection.mSdServer.mSdData.mPseizure * 100);
111-
112-
((TextView) mRootView.findViewById(R.id.pSeizureTvM2)).setText(getString(R.string.seizure_probability) + " : " + pSeizurePc + "%");
113-
114-
pb = ((ProgressBar) mRootView.findViewById(R.id.pSeizureProgressBarM2));
115-
pb.setMax(100);
116-
pb.setProgress((int) pSeizurePc);
117-
pbDrawable = AppCompatResources.getDrawable(mContext, R.drawable.progress_bar_blue);
118-
if (pSeizurePc > 30)
119-
pbDrawable = AppCompatResources.getDrawable(mContext, R.drawable.progress_bar_yellow);
120-
if (pSeizurePc > 50)
121-
pbDrawable = AppCompatResources.getDrawable(mContext, R.drawable.progress_bar_red);
122-
pb.setProgressDrawable(pbDrawable);
123109

124110
////////////////////////////////////////////////////////////
125111
// Produce graph using GraphView with smoothed line

app/src/main/res/layout/fragment_osdalg.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,6 @@
5757
android:progressBackgroundTint="#EEEEEE"
5858
android:layout_marginBottom="16dp" />
5959

60-
<TextView
61-
android:id="@+id/pSeizureTvM2"
62-
android:layout_width="match_parent"
63-
android:layout_height="wrap_content"
64-
android:text="@string/seizure_probability"
65-
android:layout_marginBottom="4dp" />
66-
67-
<ProgressBar
68-
android:id="@+id/pSeizureProgressBarM2"
69-
style="?android:attr/progressBarStyleHorizontal"
70-
android:layout_width="match_parent"
71-
android:layout_height="wrap_content"
72-
android:progressBackgroundTint="#EEEEEE"
73-
android:layout_marginBottom="24dp" />
74-
7560

7661
<com.jjoe64.graphview.GraphView
7762
android:id="@+id/chart1"

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<resources>
33
<string name="app_name">OpenSeizureDetector</string>
44
<string name="changelog">
5-
&lt;b>V5.0.7: CHANGES IN THIS VERSION&lt;/b>&lt;br/>
5+
&lt;b>V5.0.8: CHANGES IN THIS VERSION&lt;/b>&lt;br/>
66
&lt;br/> - Support downloadable machine learning models.
77
&lt;br/> - First-Use setup wizard.
88
&lt;br/> - User Interface Improvements.

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ APPLICATION_ID=uk.org.openseizuredetector
2222
# Min SDK 26 is Android 8
2323
MIN_SDK=26
2424
TARGET_SDK=35
25-
VERSION_CODE=191
26-
VERSION_NAME=5.0.7
25+
VERSION_CODE=192
26+
VERSION_NAME=5.0.8
2727
MULTI_DEX_ENABLED=true

0 commit comments

Comments
 (0)