Skip to content

Commit

Permalink
fix #190
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkempire78 committed Feb 27, 2023
1 parent ef435a1 commit cbe7631
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
resConfigs 'ar', 'az', 'bn', 'de', 'el', 'es', 'fa', 'fr', 'hi', 'in', 'it', 'ja', 'pt-rBR', 'ru', 'tr', 'zh-rHK', 'zh-rTW'
minSdkVersion 21
targetSdkVersion 33
versionCode 31
versionName "2.1.2"
versionCode 32
versionName "2.1.3"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
24 changes: 24 additions & 0 deletions app/src/main/res/layout-small-land/history_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
android:background="?attr/history_background_color"
android:textColor="?attr/text_color"
android:textSize="16sp"
app:layout_constraintTop_toBottomOf="@+id/history_time"
tools:ignore="MissingConstraints" />

<TextView
Expand All @@ -34,7 +35,30 @@
app:layout_constraintTop_toBottomOf="@+id/history_item_calculation"
tools:ignore="MissingConstraints" />

<TextView
android:id="@+id/history_time"
style="@style/RobotoFontCondensedMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:paddingHorizontal="10dp"
android:paddingVertical="4dp"
android:background="?attr/history_background_color"
android:textColor="?attr/text_second_color"
android:textSize="12sp"
tools:ignore="MissingConstraints" />

<!-- Add more space when it's the same date than the next history element -->
<View
android:id="@+id/history_same_date_separator"
android:layout_width="match_parent"
android:layout_height="8dp"
android:background="?attr/history_background_color"
app:layout_constraintTop_toBottomOf="@+id/history_item_result"
tools:ignore="MissingConstraints" />

<View
android:id="@+id/history_separator"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/foreground_color"
Expand Down
24 changes: 24 additions & 0 deletions app/src/main/res/layout-small/history_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
android:background="?attr/history_background_color"
android:textColor="?attr/text_color"
android:textSize="25sp"
app:layout_constraintTop_toBottomOf="@+id/history_time"
tools:ignore="MissingConstraints" />

<TextView
Expand All @@ -34,7 +35,30 @@
app:layout_constraintTop_toBottomOf="@+id/history_item_calculation"
tools:ignore="MissingConstraints" />

<TextView
android:id="@+id/history_time"
style="@style/RobotoFontCondensedMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:paddingHorizontal="10dp"
android:paddingVertical="4dp"
android:background="?attr/history_background_color"
android:textColor="?attr/text_second_color"
android:textSize="14sp"
tools:ignore="MissingConstraints" />

<!-- Add more space when it's the same date than the next history element -->
<View
android:id="@+id/history_same_date_separator"
android:layout_width="match_parent"
android:layout_height="10dp"
android:background="?attr/history_background_color"
app:layout_constraintTop_toBottomOf="@+id/history_item_result"
tools:ignore="MissingConstraints" />

<View
android:id="@+id/history_separator"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/foreground_color"
Expand Down
24 changes: 24 additions & 0 deletions app/src/main/res/layout-sw600dp/history_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
android:background="?attr/history_background_color"
android:textColor="?attr/text_color"
android:textSize="55sp"
app:layout_constraintTop_toBottomOf="@+id/history_time"
tools:ignore="MissingConstraints" />

<TextView
Expand All @@ -34,7 +35,30 @@
app:layout_constraintTop_toBottomOf="@+id/history_item_calculation"
tools:ignore="MissingConstraints" />

<TextView
android:id="@+id/history_time"
style="@style/RobotoFontCondensedMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:paddingHorizontal="10dp"
android:paddingVertical="4dp"
android:background="?attr/history_background_color"
android:textColor="?attr/text_second_color"
android:textSize="44sp"
tools:ignore="MissingConstraints" />

<!-- Add more space when it's the same date than the next history element -->
<View
android:id="@+id/history_same_date_separator"
android:layout_width="match_parent"
android:layout_height="38dp"
android:background="?attr/history_background_color"
app:layout_constraintTop_toBottomOf="@+id/history_item_result"
tools:ignore="MissingConstraints" />

<View
android:id="@+id/history_separator"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/foreground_color"
Expand Down
24 changes: 24 additions & 0 deletions app/src/main/res/layout-sw720dp-land/history_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
android:background="?attr/history_background_color"
android:textColor="?attr/text_color"
android:textSize="75sp"
app:layout_constraintTop_toBottomOf="@+id/history_time"
tools:ignore="MissingConstraints" />

<TextView
Expand All @@ -34,7 +35,30 @@
app:layout_constraintTop_toBottomOf="@+id/history_item_calculation"
tools:ignore="MissingConstraints" />

<TextView
android:id="@+id/history_time"
style="@style/RobotoFontCondensedMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:paddingHorizontal="10dp"
android:paddingVertical="4dp"
android:background="?attr/history_background_color"
android:textColor="?attr/text_second_color"
android:textSize="60sp"
tools:ignore="MissingConstraints" />

<!-- Add more space when it's the same date than the next history element -->
<View
android:id="@+id/history_same_date_separator"
android:layout_width="match_parent"
android:layout_height="52dp"
android:background="?attr/history_background_color"
app:layout_constraintTop_toBottomOf="@+id/history_item_result"
tools:ignore="MissingConstraints" />

<View
android:id="@+id/history_separator"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/foreground_color"
Expand Down
24 changes: 24 additions & 0 deletions app/src/main/res/layout-sw720dp/history_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
android:background="?attr/history_background_color"
android:textColor="?attr/text_color"
android:textSize="95sp"
app:layout_constraintTop_toBottomOf="@+id/history_time"
tools:ignore="MissingConstraints" />

<TextView
Expand All @@ -34,7 +35,30 @@
app:layout_constraintTop_toBottomOf="@+id/history_item_calculation"
tools:ignore="MissingConstraints" />

<TextView
android:id="@+id/history_time"
style="@style/RobotoFontCondensedMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:paddingHorizontal="10dp"
android:paddingVertical="4dp"
android:background="?attr/history_background_color"
android:textColor="?attr/text_second_color"
android:textSize="80sp"
tools:ignore="MissingConstraints" />

<!-- Add more space when it's the same date than the next history element -->
<View
android:id="@+id/history_same_date_separator"
android:layout_width="match_parent"
android:layout_height="70dp"
android:background="?attr/history_background_color"
app:layout_constraintTop_toBottomOf="@+id/history_item_result"
tools:ignore="MissingConstraints" />

<View
android:id="@+id/history_separator"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/foreground_color"
Expand Down
2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/32.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixed:
- Crash on small screens and tablets

0 comments on commit cbe7631

Please sign in to comment.