aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-09-17 03:40:24 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-09-17 03:40:24 +0000
commitc15f117810eb2be5b93fcd06b3d018060520e00a (patch)
tree25dbe74db32513d497c23228a75a1923b6ffe016 /app/src/main/res
parent341f1b37d6c02859e2b48437817dcf7f4efdd374 (diff)
downloadinfinity-for-reddit-c15f117810eb2be5b93fcd06b3d018060520e00a.tar
infinity-for-reddit-c15f117810eb2be5b93fcd06b3d018060520e00a.tar.gz
infinity-for-reddit-c15f117810eb2be5b93fcd06b3d018060520e00a.tar.bz2
infinity-for-reddit-c15f117810eb2be5b93fcd06b3d018060520e00a.tar.lz
infinity-for-reddit-c15f117810eb2be5b93fcd06b3d018060520e00a.tar.xz
infinity-for-reddit-c15f117810eb2be5b93fcd06b3d018060520e00a.tar.zst
infinity-for-reddit-c15f117810eb2be5b93fcd06b3d018060520e00a.zip
Add an option to download media in PostOptionsBottomSheetFragment.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_post_options_bottom_sheet.xml21
-rw-r--r--app/src/main/res/values/strings.xml7
2 files changed, 28 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_post_options_bottom_sheet.xml b/app/src/main/res/layout/fragment_post_options_bottom_sheet.xml
index cf5074b3..647819de 100644
--- a/app/src/main/res/layout/fragment_post_options_bottom_sheet.xml
+++ b/app/src/main/res/layout/fragment_post_options_bottom_sheet.xml
@@ -91,6 +91,27 @@
app:drawableTint="?attr/primaryTextColor" />
<androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/download_text_view_post_options_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:background="?attr/selectableItemBackground"
+ android:clickable="true"
+ android:drawableStart="@drawable/ic_download_day_night_24dp"
+ android:drawablePadding="48dp"
+ android:focusable="true"
+ android:fontFamily="?attr/font_family"
+ android:paddingStart="32dp"
+ android:paddingTop="16dp"
+ android:paddingEnd="32dp"
+ android:paddingBottom="16dp"
+ android:text="@string/action_crosspost"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:visibility="gone"
+ app:drawableTint="?attr/primaryTextColor" />
+
+ <androidx.appcompat.widget.AppCompatTextView
android:id="@+id/report_text_view_post_options_bottom_sheet_fragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index d2e88ef2..68c26e20 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1050,6 +1050,8 @@
<string name="downloading_image_or_gif_failed_cannot_get_destination_directory">Download failed: cannot access destination directory</string>
<string name="downloading_media_failed_cannot_download_media">Download failed</string>
<string name="downloading_media_failed_cannot_save_to_destination_directory">Download failed: cannot save the file to destination directory</string>
+ <string name="downloading_media_failed_cannot_fetch_redgifs_url">Download failed: cannot fetch Redgifs video url</string>
+ <string name="downloading_media_failed_cannot_fetch_streamable_url">Download failed: cannot fetch Streamable video url</string>
<string name="wallpaper_set">Wallpaper set</string>
<string name="error_set_wallpaper">Cannot set wallpaper</string>
@@ -1496,4 +1498,9 @@
<string name="toggle_reply_notifications_failed">Toggle reply notifications failed</string>
<string name="cannot_find_comment">Cannot find comment</string>
+ <string name="download_image">Download Image</string>
+ <string name="download_gif">Download Gif</string>
+ <string name="download_video">Download Video</string>
+ <string name="download_all_gallery_images">Download All Gallery Images</string>
+
</resources>