Skip to content

Commit 5fda81b

Browse files
fesaveabelgardep
authored andcommitted
CR Suggestions
1 parent 7097ccb commit 5fda81b

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

owncloudApp/src/main/res/layout/preview_image_fragment.xml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,40 +30,31 @@
3030
android:id="@+id/progressWheel"
3131
android:layout_width="wrap_content"
3232
android:layout_height="wrap_content"
33-
android:layout_centerInParent="true"
3433
android:indeterminate="true"
3534
android:indeterminateOnly="true"
3635
app:layout_constraintBottom_toBottomOf="parent"
3736
app:layout_constraintLeft_toLeftOf="parent"
3837
app:layout_constraintRight_toRightOf="parent"
3938
app:layout_constraintTop_toTopOf="parent" />
4039

41-
<androidx.constraintlayout.widget.Guideline
42-
android:id="@+id/horizontal_guideline_50_percent"
43-
android:layout_width="wrap_content"
44-
android:layout_height="wrap_content"
45-
android:orientation="horizontal"
46-
app:layout_constraintGuide_percent="0.5" />
47-
4840
<ImageView
4941
android:id="@+id/error_image"
5042
android:layout_width="wrap_content"
5143
android:layout_height="wrap_content"
52-
android:layout_gravity="center_horizontal"
53-
android:contentDescription="@string/downloader_download_failed_ticker"
44+
android:contentDescription="@string/downloader_preview_failed_ticker"
5445
android:src="@drawable/image_fail"
55-
app:layout_constraintBottom_toBottomOf="@id/horizontal_guideline_50_percent"
5646
app:layout_constraintLeft_toLeftOf="parent"
5747
app:layout_constraintRight_toRightOf="parent"
58-
app:layout_constraintTop_toTopOf="@id/horizontal_guideline_50_percent" />
48+
app:layout_constraintTop_toTopOf="parent"
49+
app:layout_constraintBottom_toBottomOf="parent"/>
5950

6051
<TextView
6152
android:id="@+id/errorText"
6253
android:layout_width="0dp"
6354
android:layout_height="wrap_content"
6455
android:layout_margin="40dp"
6556
android:gravity="center"
66-
android:text="@string/downloader_download_failed_ticker"
57+
android:text="@string/downloader_preview_failed_ticker"
6758
android:textColor="@color/dark_background_text_color"
6859
app:layout_constraintLeft_toLeftOf="parent"
6960
app:layout_constraintRight_toRightOf="parent"
@@ -94,6 +85,7 @@
9485
<include layout="@layout/top_progress_bar" />
9586

9687
<androidx.constraintlayout.widget.Group
88+
tools:visibility="visible"
9789
android:id="@+id/error_group"
9890
android:layout_width="wrap_content"
9991
android:layout_height="wrap_content"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@
241241
<string name="downloader_download_succeeded_ticker">Download succeeded</string>
242242
<string name="downloader_download_succeeded_content">%1$s downloaded</string>
243243
<string name="downloader_download_failed_ticker">Download failed</string>
244+
<string name="downloader_preview_failed_ticker">Unable to display the file</string>
244245
<string name="downloader_download_failed_content">Download of %1$s could not be completed</string>
245246
<string name="downloader_not_downloaded_yet">Not downloaded yet</string>
246247
<string name="downloader_download_failed_credentials_error">Download failed, you need to log in again</string>

0 commit comments

Comments
 (0)