diff --git a/app/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java b/app/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java
index f9935fe73b..ff4c28f3df 100644
--- a/app/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java
+++ b/app/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java
@@ -207,15 +207,20 @@ public class PreviewImageFragment extends FileFragment implements Injectable {
String livePhoto = getFile().getLivePhoto();
if (livePhoto != null) {
+ binding.livePhotoIndicator.setVisibility(View.VISIBLE);
+
binding.image.setOnLongClickListener(v -> {
- playLivePhoto();
+ OCFile videoOfLivePhoto = getFile().videoOfLivePhoto;
+ if (videoOfLivePhoto != null) {
+ playLivePhoto(videoOfLivePhoto);
+ }
return true;
});
}
}
- private void playLivePhoto() {
- Fragment mediaFragment = PreviewMediaFragment.newInstance(getFile().videoOfLivePhoto, accountManager.getUser(), 0, true);
+ private void playLivePhoto(OCFile file) {
+ Fragment mediaFragment = PreviewMediaFragment.newInstance(file, accountManager.getUser(), 0, true);
FragmentManager fragmentManager = requireActivity().getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.top, mediaFragment);
diff --git a/app/src/main/res/drawable/ic_live_photo.xml b/app/src/main/res/drawable/ic_live_photo.xml
index e874541a9d..6a11be6e80 100644
--- a/app/src/main/res/drawable/ic_live_photo.xml
+++ b/app/src/main/res/drawable/ic_live_photo.xml
@@ -1,23 +1,23 @@
+ android:viewportWidth="26.016"
+ android:viewportHeight="26.004">
diff --git a/app/src/main/res/layout/preview_image_fragment.xml b/app/src/main/res/layout/preview_image_fragment.xml
index 7a1ea64e31..7745eb1b4f 100644
--- a/app/src/main/res/layout/preview_image_fragment.xml
+++ b/app/src/main/res/layout/preview_image_fragment.xml
@@ -18,11 +18,30 @@
-->
+
+
56dp
80dp
40dp
+ 100dp
128dp
8dp
3dp
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 3320ce87cf..f8902844a5 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -86,7 +86,7 @@
Keep file in source folder
Delete file from source folder
seconds ago
- live
+ LIVE
No files here
No folders here
Upload some content or sync with your devices.