|
@@ -79,9 +79,7 @@ import androidx.core.content.ContextCompat;
|
|
|
import androidx.core.content.res.ResourcesCompat;
|
|
|
import androidx.fragment.app.Fragment;
|
|
|
import androidx.fragment.app.FragmentManager;
|
|
|
-import androidx.fragment.app.FragmentStatePagerAdapter;
|
|
|
import androidx.fragment.app.FragmentTransaction;
|
|
|
-import androidx.viewpager2.adapter.FragmentStateAdapter;
|
|
|
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
|
|
import pl.droidsonroids.gif.GifDrawable;
|
|
|
|
|
@@ -128,7 +126,7 @@ public class PreviewImageFragment extends FileFragment implements Injectable {
|
|
|
* This method hides to client objects the need of doing the construction in two steps.
|
|
|
*
|
|
|
* @param imageFile An {@link OCFile} to preview as an image in the fragment
|
|
|
- * @param ignoreFirstSavedState Flag to work around an unexpected behaviour of {@link FragmentStateAdapter} ;
|
|
|
+ * @param ignoreFirstSavedState Flag to work around an unexpected behaviour of { FragmentStateAdapter } ;
|
|
|
* TODO better solution
|
|
|
*/
|
|
|
public static PreviewImageFragment newInstance(@NonNull OCFile imageFile,
|