Browse Source

fix npe on resume

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 6 năm trước cách đây
mục cha
commit
a37b34fc78

+ 4 - 0
src/main/java/com/owncloud/android/ui/fragment/FileDetailSharingFragment.java

@@ -172,6 +172,10 @@ public class FileDetailSharingFragment extends Fragment implements UserListAdapt
         View view = inflater.inflate(R.layout.file_details_sharing_fragment, container, false);
         unbinder = ButterKnife.bind(this, view);
 
+        if (fileDataStorageManager == null) {
+            fileDataStorageManager = new FileDataStorageManager(account, fileDisplayActivity.getContentResolver());
+        }
+
         setupView();
 
         return view;