Skip to content

Commit 127be5b

Browse files
committed
Update c2pa details layout to remove unused resources
1 parent 89f9b8e commit 127be5b

File tree

2 files changed

+3
-29
lines changed

2 files changed

+3
-29
lines changed

lensdemo/src/main/res/layout/c2pa_details.xml

+3-28
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
style="@style/Text"
6868
android:layout_width="0dp"
6969
android:layout_height="wrap_content"
70-
android:layout_marginTop="@dimen/default_margin_small"
7170
android:layout_marginBottom="@dimen/c2pa_info_text_margin"
7271
android:background="@drawable/ai_background"
7372
android:padding="@dimen/c2pa_info_text_margin"
@@ -76,7 +75,7 @@
7675
app:layout_constraintBottom_toTopOf="@id/captured_label"
7776
app:layout_constraintEnd_toEndOf="parent"
7877
app:layout_constraintStart_toEndOf="@id/barrier"
79-
app:layout_constraintTop_toBottomOf="@id/title_barrier"
78+
app:layout_constraintTop_toTopOf="@id/thumbnail"
8079
app:layout_constraintVertical_chainStyle="packed"
8180
tools:ignore="RtlSymmetry" />
8281

@@ -89,8 +88,7 @@
8988
app:layout_constraintBottom_toTopOf="@id/captured_text"
9089
app:layout_constraintEnd_toEndOf="parent"
9190
app:layout_constraintStart_toEndOf="@id/barrier"
92-
app:layout_constraintTop_toBottomOf="@id/ai_warning"
93-
app:layout_goneMarginTop="@dimen/default_margin_small" />
91+
app:layout_constraintTop_toBottomOf="@id/ai_warning" />
9492

9593
<TextView
9694
android:id="@+id/captured_text"
@@ -197,33 +195,10 @@
197195
android:layout_marginBottom="@dimen/c2pa_info_text_margin"
198196
android:paddingBottom="@dimen/c2pa_info_text_margin"
199197
android:text="@string/c2pa_info_na"
200-
app:layout_constraintBottom_toTopOf="@id/signed_with_label"
201-
app:layout_constraintEnd_toEndOf="parent"
202-
app:layout_constraintStart_toEndOf="@id/barrier"
203-
app:layout_constraintTop_toBottomOf="@id/signed_by_label" />
204-
205-
<TextView
206-
android:id="@+id/signed_with_label"
207-
android:layout_width="0dp"
208-
android:layout_height="wrap_content"
209-
android:text="@string/c2pa_info_signed_with"
210-
android:textAppearance="@style/Text.Grey"
211-
app:layout_constraintBottom_toTopOf="@id/signed_with_text"
212-
app:layout_constraintEnd_toEndOf="parent"
213-
app:layout_constraintStart_toEndOf="@id/barrier"
214-
app:layout_constraintTop_toBottomOf="@id/signed_by_text" />
215-
216-
<TextView
217-
android:id="@+id/signed_with_text"
218-
style="@style/Text.Medium"
219-
android:layout_width="0dp"
220-
android:layout_height="wrap_content"
221-
android:layout_marginBottom="@dimen/default_margin_small"
222-
android:text="@string/c2pa_info_na"
223198
app:layout_constraintBottom_toBottomOf="parent"
224199
app:layout_constraintEnd_toEndOf="parent"
225200
app:layout_constraintStart_toEndOf="@id/barrier"
226-
app:layout_constraintTop_toBottomOf="@id/signed_with_label" />
201+
app:layout_constraintTop_toBottomOf="@id/signed_by_label" />
227202

228203
<ProgressBar
229204
android:id="@+id/progress"

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

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
<string name="c2pa_info_created_with">Created with</string>
2222
<string name="c2pa_info_location">Location</string>
2323
<string name="c2pa_info_signed_by">Signed by</string>
24-
<string name="c2pa_info_signed_with">Signed with</string>
2524
<string name="c2pa_info_na">N/A</string>
2625
<string name="content_history">Content History</string>
2726
<string name="c2pa_info_ai">Contains AI-generated content</string>

0 commit comments

Comments
 (0)