Browse Source

Moved text load call to onStart

Jorge Antonio Díaz-Benito Soriano 9 years ago
parent
commit
efbab82a6e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/com/owncloud/android/ui/preview/PreviewTextFragment.java

+ 2 - 2
src/com/owncloud/android/ui/preview/PreviewTextFragment.java

@@ -119,6 +119,8 @@ public class PreviewTextFragment extends FileFragment {
     public void onStart() {
         super.onStart();
         Log_OC.e(TAG, "onStart");
+
+        loadAndShowTextPreview();
     }
 
     private void loadAndShowTextPreview() {
@@ -359,8 +361,6 @@ public class PreviewTextFragment extends FileFragment {
     public void onResume() {
         super.onResume();
         Log_OC.e(TAG, "onResume");
-
-        loadAndShowTextPreview();
     }
 
     @Override