ditch the recyclerview parcelable state holder

This commit is contained in:
tibbi 2016-11-16 23:59:25 +01:00
parent cd4d98d386
commit 06f345240a

View file

@ -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<String>
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() {