This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cannot delete tests older than 21 days - DE: Tests die älter als 21 T…
…age sind, können nicht gelöscht werden (EXPOSUREAPP-2398) (#1481) * Added new card to show redeemed tests on the home screen Signed-off-by: Kolya Opahle <[email protected]> * Fixed linting and unit tests Signed-off-by: Kolya Opahle <[email protected]> Co-authored-by: harambasicluka <[email protected]>
- Loading branch information
1 parent
e857ddd
commit 21b7d77
Showing
10 changed files
with
273 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/view/TestResultCardFetchFailed.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package de.rki.coronawarnapp.ui.view | ||
|
||
import android.content.Context | ||
import android.util.AttributeSet | ||
import android.view.LayoutInflater | ||
import androidx.constraintlayout.widget.ConstraintLayout | ||
import de.rki.coronawarnapp.databinding.ViewSubmissionStatusCardFetchFailedBinding | ||
|
||
class TestResultCardFetchFailed(context: Context, attrs: AttributeSet) : | ||
ConstraintLayout(context, attrs) { | ||
private val inflater = LayoutInflater.from(context) | ||
private val binding = ViewSubmissionStatusCardFetchFailedBinding.inflate(inflater, this) | ||
|
||
override fun setOnClickListener(l: OnClickListener?) { | ||
super.setOnClickListener(l) | ||
binding.submissionStatusCardFetchFailedButton.setOnClickListener(l) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
Corona-Warn-App/src/main/res/layout/view_submission_status_card_fetch_failed.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merge xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
|
||
<TextView | ||
android:id="@+id/submission_status_card_fetch_failed_title" | ||
style="@style/headline5" | ||
android:layout_width="@dimen/match_constraint" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="@dimen/card_padding" | ||
android:layout_marginTop="@dimen/card_padding" | ||
android:layout_marginEnd="@dimen/spacing_small" | ||
android:accessibilityHeading="true" | ||
android:focusable="false" | ||
android:text="@string/submission_status_card_title_failed" | ||
app:layout_constraintEnd_toStartOf="@+id/submission_status_card_fetch_failed_icon" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
|
||
<TextView | ||
android:id="@+id/submission_status_card_fetch_failed_body" | ||
style="@style/subtitleMedium" | ||
android:layout_width="@dimen/match_constraint" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="@dimen/card_padding" | ||
android:layout_marginTop="@dimen/spacing_normal" | ||
android:layout_marginEnd="@dimen/spacing_small" | ||
android:focusable="false" | ||
android:text="@string/submission_status_card_body_failed" | ||
app:layout_constraintEnd_toStartOf="@+id/submission_status_card_fetch_failed_icon" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/submission_status_card_fetch_failed_title" /> | ||
|
||
<Button | ||
android:id="@+id/submission_status_card_fetch_failed_button" | ||
style="@style/buttonPrimary" | ||
android:layout_width="@dimen/match_constraint" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="@dimen/card_padding" | ||
android:layout_marginTop="@dimen/spacing_normal" | ||
android:layout_marginEnd="@dimen/card_padding" | ||
android:layout_marginBottom="@dimen/card_padding" | ||
android:text="@string/submission_status_card_button_failed" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/submission_status_card_unregistered_barrier" /> | ||
|
||
<ImageView | ||
android:id="@+id/submission_status_card_fetch_failed_icon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:importantForAccessibility="no" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="@+id/submission_status_card_fetch_failed_title" | ||
app:srcCompat="@drawable/ic_main_illustration_invalid" /> | ||
|
||
<androidx.constraintlayout.widget.Barrier | ||
android:id="@+id/submission_status_card_unregistered_barrier" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:barrierDirection="bottom" | ||
app:constraint_referenced_ids="submission_status_card_fetch_failed_icon,submission_status_card_fetch_failed_body" /> | ||
</merge> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.