Fix test case

pull/2012/head
Dharanish 1 year ago
parent bf05740c82
commit 1a9dc0d9ce

@ -97,9 +97,10 @@
android:textSize="@dimen/smallTextSize" /> android:textSize="@dimen/smallTextSize" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_marginBottom="2dp" android:layout_marginBottom="2dp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal" android:orientation="horizontal"
@ -109,11 +110,11 @@
android:id="@+id/skipLabel" android:id="@+id/skipLabel"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="1dp"
android:textColor="?attr/contrast60"
android:text=""
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:paddingTop="1dp"
android:text="Hello"
android:textColor="?attr/contrast60"
android:textSize="@dimen/smallTextSize" /> android:textSize="@dimen/smallTextSize" />
</LinearLayout> </LinearLayout>

@ -53,10 +53,10 @@ class StreakList {
.toTypedArray() .toTypedArray()
if (timestamps.isEmpty()) return if (timestamps.isEmpty()) return
var notSkipStreak = false
var begin = timestamps[0] var begin = timestamps[0]
var end = timestamps[0] var end = timestamps[0]
var notSkipStreak = (values[0] != Entry.SKIP)
for (i in 1 until timestamps.size) { for (i in 1 until timestamps.size) {
val current = timestamps[i] val current = timestamps[i]
if (current == begin.minus(1)) { if (current == begin.minus(1)) {

Loading…
Cancel
Save