|
|
@ -8,7 +8,6 @@ import android.view.MenuItem |
|
|
|
import android.view.View |
|
|
|
import android.view.View |
|
|
|
import android.view.ViewGroup |
|
|
|
import android.view.ViewGroup |
|
|
|
import androidx.appcompat.widget.Toolbar |
|
|
|
import androidx.appcompat.widget.Toolbar |
|
|
|
import androidx.fragment.app.FragmentManager |
|
|
|
|
|
|
|
import androidx.fragment.app.viewModels |
|
|
|
import androidx.fragment.app.viewModels |
|
|
|
import androidx.recyclerview.widget.ItemTouchHelper |
|
|
|
import androidx.recyclerview.widget.ItemTouchHelper |
|
|
|
import androidx.recyclerview.widget.RecyclerView |
|
|
|
import androidx.recyclerview.widget.RecyclerView |
|
|
@ -262,16 +261,6 @@ class TocRegexDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListener { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
companion object { |
|
|
|
|
|
|
|
fun show(fragmentManager: FragmentManager, tocRegex: String? = null) { |
|
|
|
|
|
|
|
val dialog = TocRegexDialog() |
|
|
|
|
|
|
|
val bundle = Bundle() |
|
|
|
|
|
|
|
bundle.putString("tocRegex", tocRegex) |
|
|
|
|
|
|
|
dialog.arguments = bundle |
|
|
|
|
|
|
|
dialog.show(fragmentManager, "tocRegexDialog") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface CallBack { |
|
|
|
interface CallBack { |
|
|
|
fun onTocRegexDialogResult(tocRegex: String) {} |
|
|
|
fun onTocRegexDialogResult(tocRegex: String) {} |
|
|
|
} |
|
|
|
} |
|
|
|