From 06f345240a740db3e496a20a5b373c7fb017a3d3 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 16 Nov 2016 23:59:25 +0100 Subject: [PATCH] ditch the recyclerview parcelable state holder --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 09c67cef5..d98597a80 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -7,7 +7,6 @@ import android.content.pm.PackageManager import android.graphics.Color import android.net.Uri import android.os.Bundle -import android.os.Parcelable import android.provider.MediaStore import android.support.design.widget.Snackbar import android.support.v4.app.ActivityCompat @@ -39,7 +38,6 @@ class MainActivity : SimpleActivity(), SwipeRefreshLayout.OnRefreshListener, Get private var mSnackbar: Snackbar? = null lateinit var mToBeDeleted: MutableList private var mActionMode: ActionMode? = null - private var mState: Parcelable? = null private var mIsSnackbarShown = false private var mIsPickImageIntent = false @@ -104,14 +102,11 @@ class MainActivity : SimpleActivity(), SwipeRefreshLayout.OnRefreshListener, Get override fun onResume() { super.onResume() tryloadGallery() - /*if (mState != null) - directories_grid.onRestoreInstanceState(mState)*/ } override fun onPause() { super.onPause() deleteDirs() - //mState = directories_grid.onSaveInstanceState() } override fun onDestroy() {