Эх сурвалжийг харах

Solved 'Share with copied link' flow

Jorge Antonio Diaz-Benito Soriano 10 жил өмнө
parent
commit
7414d163f0

+ 4 - 2
src/com/owncloud/android/ui/activity/FileDisplayActivity.java

@@ -1411,9 +1411,11 @@ public class FileDisplayActivity extends HookActivity implements
                 if (details instanceof PreviewMediaFragment) {
                     // Refresh  OCFile of the fragment
                     ((PreviewMediaFragment) details).updateFile(file);
-                } else {
+                } else if (details instanceof PreviewTextFragment) {
+                    // Refresh  OCFile of the fragment
+                    ((PreviewTextFragment) details).updateFile(file);
+                } else
                     showDetails(file);
-                }
             }
             invalidateOptionsMenu();
         }