package com.kdanmobile.reader.thumb.mode

import android.app.Activity
import com.kdanmobile.reader.thumb.PdfThumbActivity
import com.kdanmobile.reader.thumb.PdfThumbAdapter

class EditMode: Mode() {
    override fun onClickToolBarNavigation() {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun updateToolbar() {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun onPageItemClick(activity: Activity, integer: Int, operate: Int, selectMap: MutableMap<Int,Boolean>, pdfThumbAdapter: PdfThumbAdapter){
        selectMap[integer]?.let {
            selectMap[integer] = !it
        }
        pdfThumbAdapter.notifyDataSetChanged()
        (activity as PdfThumbActivity).updateToolbar()
    }
}