Optimize imports

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-05-16 16:39:09 +02:00 committed by Alper Öztürk
parent cd8e11b065
commit d667853102
2 changed files with 1 additions and 5 deletions

View file

@ -21,7 +21,6 @@ import android.content.IntentFilter;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import com.nextcloud.client.account.User;
import com.nextcloud.client.di.Injectable;
@ -52,8 +51,6 @@ import com.owncloud.android.ui.fragment.OCFileListFragment;
import com.owncloud.android.utils.MimeTypeUtil;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import javax.inject.Inject;
@ -62,7 +59,6 @@ import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBar;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewpager2.widget.ViewPager2;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

View file

@ -129,7 +129,7 @@ class PreviewImagePagerAdapter : FragmentStateAdapter {
*/
fun getFileAt(position: Int): OCFile? {
return try {
imageFiles!![position]
imageFiles[position]
} catch (exception: IndexOutOfBoundsException) {
null
}