Skip to content

Commit

Permalink
Fix closest dose calculation bug
Browse files Browse the repository at this point in the history
Make descriptions look better in detail view
Make "add medications to your list" label font a little bigger
  • Loading branch information
CorruptedArk committed Aug 11, 2021
1 parent 2e38508 commit 48ad914
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
22 changes: 0 additions & 22 deletions app/src/main/java/dev/corruptedark/diditakemymeds/Medication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -282,28 +282,6 @@ data class Medication (@ColumnInfo(name = "name") var name: String,

scheduleTripleList.add(scheduleTriple)

localCalendar.add(Calendar.DATE, -daysBetween)
localCalendar.add(Calendar.WEEK_OF_YEAR, -weeksBetween)
localCalendar.add(Calendar.MONTH, -monthsBetween)
localCalendar.add(Calendar.YEAR, -yearsBetween)
scheduleTriple = ScheduleSortTriple(
localCalendar.timeInMillis,
RepeatSchedule(
hour,
minute,
startDay,
startMonth,
startYear,
daysBetween,
weeksBetween,
monthsBetween,
yearsBetween
),
-1
)

scheduleTripleList.add(scheduleTriple)

localCalendar.add(Calendar.DATE, 2 * daysBetween)
localCalendar.add(Calendar.WEEK_OF_YEAR, 2 * weeksBetween)
localCalendar.add(Calendar.MONTH, 2 * monthsBetween)
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
android:text="@string/add_medications"
android:textColor="@color/purple_200"
app:autoSizeTextType="uniform"
android:textSize="18sp"
android:gravity="center"/>


Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_med_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
android:layout_height="wrap_content"
android:textColor="@color/white"
app:autoSizeTextType="uniform"
android:textSize="25sp"
android:padding="10dp"
android:textSize="23sp"
android:padding="20dp"
android:text="@string/sample_description"/>

<com.google.android.material.textview.MaterialTextView
Expand Down

0 comments on commit 48ad914

Please sign in to comment.