4444import com .google .android .material .floatingactionbutton .FloatingActionButton ;
4545import com .nextcloud .client .account .User ;
4646import com .nextcloud .client .account .UserAccountManager ;
47- import com .nextcloud .client .core .Clock ;
48- import com .nextcloud .client .device .DeviceInfo ;
4947import com .nextcloud .client .di .Injectable ;
5048import com .nextcloud .client .jobs .BackgroundJobManager ;
5149import com .nextcloud .client .network .ClientFactory ;
5250import com .nextcloud .client .network .ConnectivityService ;
5351import com .nextcloud .client .preferences .AppPreferences ;
54- import com .nextcloud .ui .fileactions .FileActionsBottomSheet ;
5552import com .nextcloud .utils .EditorUtils ;
53+ import com .nextcloud .ui .fileactions .FileActionsBottomSheet ;
5654import com .nextcloud .utils .MenuUtils ;
5755import com .owncloud .android .MainApp ;
5856import com .owncloud .android .R ;
@@ -132,11 +130,8 @@ public class FileDetailFragment extends FileFragment implements OnClickListener,
132130 @ Inject FileDataStorageManager storageManager ;
133131 @ Inject ViewThemeUtils viewThemeUtils ;
134132 @ Inject BackgroundJobManager backgroundJobManager ;
135- @ Inject DeviceInfo deviceInfo ;
136133 @ Inject EditorUtils editorUtils ;
137- @ Inject Clock clock ;
138-
139- private SyncedFolderProvider syncedFolderProvider ;
134+ @ Inject SyncedFolderProvider syncedFolderProvider ;
140135
141136 /**
142137 * Public factory method to create new FileDetailFragment instances.
@@ -226,8 +221,6 @@ public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
226221 throw new IllegalArgumentException ("Arguments may not be null" );
227222 }
228223
229- syncedFolderProvider =new SyncedFolderProvider (requireActivity ().getContentResolver (), preferences , clock );
230-
231224 setFile (arguments .getParcelable (ARG_FILE ));
232225 parentFolder = arguments .getParcelable (ARG_PARENT_FOLDER );
233226 user = arguments .getParcelable (ARG_USER );
@@ -252,6 +245,11 @@ public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
252245 return null ;
253246 }
254247
248+ FloatingActionButton fabMain = requireActivity ().findViewById (R .id .fab_main );
249+ if (fabMain != null ) {
250+ fabMain .hide ();
251+ }
252+
255253 if (getFile ().getTags ().isEmpty ()) {
256254 binding .tagsGroup .setVisibility (View .GONE );
257255 } else {
@@ -568,7 +566,7 @@ private void setFilePreview(OCFile file) {
568566 .getFolderTypeIcon (file .isSharedWithMe () || file .isSharedWithSharee (),
569567 file .isSharedViaLink (), file .isEncrypted (),
570568 file .isGroupFolder (),
571- // syncedFolderProvider.findByRemotePathAndAccount(file.getRemotePath(), user),
569+ syncedFolderProvider .findByRemotePathAndAccount (file .getRemotePath (), user ),
572570 file .getMountType (), requireContext (),
573571 viewThemeUtils ));
574572 int leftRightPadding = requireContext ().getResources ().getDimensionPixelSize (R .dimen .standard_padding );
0 commit comments