mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
Optimize imports
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
cd8e11b065
commit
d667853102
2 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ class PreviewImagePagerAdapter : FragmentStateAdapter {
|
|||
*/
|
||||
fun getFileAt(position: Int): OCFile? {
|
||||
return try {
|
||||
imageFiles!![position]
|
||||
imageFiles[position]
|
||||
} catch (exception: IndexOutOfBoundsException) {
|
||||
null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue