Solved 'Share with copied link' flow
authorJorge Antonio Diaz-Benito Soriano <jorge.diazbenitosoriano@gmail.com>
Sun, 26 Oct 2014 08:09:59 +0000 (09:09 +0100)
committerJorge Antonio Diaz-Benito Soriano <jorge.diazbenitosoriano@gmail.com>
Sun, 26 Oct 2014 08:09:59 +0000 (09:09 +0100)
src/com/owncloud/android/ui/activity/FileDisplayActivity.java

index 63ca229..60636df 100644 (file)
@@ -1411,9 +1411,11 @@ public class FileDisplayActivity extends HookActivity implements
                 if (details instanceof PreviewMediaFragment) {
                     // Refresh  OCFile of the fragment
                     ((PreviewMediaFragment) details).updateFile(file);
                 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);
                     showDetails(file);
-                }
             }
             invalidateOptionsMenu();
         }
             }
             invalidateOptionsMenu();
         }