aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-07-24 10:51:57 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-07-24 10:51:57 +0000
commit469542fb683a983824cf7f4b75f29a69b9d6307f (patch)
tree2524ddd5d670001592aa52c68371c38bd905abe2 /app/src/main/res
parentfcff7784c9e7128d2226e5011dc5709772f97384 (diff)
downloadinfinity-for-reddit-469542fb683a983824cf7f4b75f29a69b9d6307f.tar
infinity-for-reddit-469542fb683a983824cf7f4b75f29a69b9d6307f.tar.gz
infinity-for-reddit-469542fb683a983824cf7f4b75f29a69b9d6307f.tar.bz2
infinity-for-reddit-469542fb683a983824cf7f4b75f29a69b9d6307f.tar.lz
infinity-for-reddit-469542fb683a983824cf7f4b75f29a69b9d6307f.tar.xz
infinity-for-reddit-469542fb683a983824cf7f4b75f29a69b9d6307f.tar.zst
infinity-for-reddit-469542fb683a983824cf7f4b75f29a69b9d6307f.zip
Capture images and videos from camera when click capture fab in PostImageActivity and PostVideoActivity. Go to user's profile after sending image post.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_view_post_detail.xml3
-rw-r--r--app/src/main/res/values/strings.xml3
-rw-r--r--app/src/main/res/xml/file_paths.xml5
3 files changed, 10 insertions, 1 deletions
diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml
index 11f5ce1e..1e26a65a 100644
--- a/app/src/main/res/layout/activity_view_post_detail.xml
+++ b/app/src/main/res/layout/activity_view_post_detail.xml
@@ -25,7 +25,8 @@
android:id="@+id/progress_bar_view_post_detail_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="center" />
+ android:layout_gravity="center"
+ android:visibility="gone" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view_view_post_detail"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 5d8904e4..1f7e7d08 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -117,8 +117,11 @@
<string name="select_from_gallery">Select a picture</string>
<string name="select_again">Select again</string>
<string name="error_getting_image">Error getting the image</string>
+ <string name="no_camera_available">No camera app available</string>
+ <string name="error_creating_temp_file">Error creating temp file</string>
<string name="video_is_processing">Video is processing. Please wait.</string>
+ <string name="image_is_processing">Image is processing. Please wait.</string>
<string name="flair">Flair</string>
<string name="spoiler">Spoiler</string>
diff --git a/app/src/main/res/xml/file_paths.xml b/app/src/main/res/xml/file_paths.xml
new file mode 100644
index 00000000..79f4cf3f
--- /dev/null
+++ b/app/src/main/res/xml/file_paths.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<paths xmlns:android="http://schemas.android.com/apk/res/android">
+ <external-path name="image_temp"
+ path="Android/data/ml.docilealligator.infinityforreddit/files/Pictures" />
+</paths> \ No newline at end of file