- // Declare the class variables.
- private lateinit var moveToFolderListener: MoveToFolderListener
- private lateinit var bookmarksDatabaseHelper: BookmarksDatabaseHelper
- private lateinit var exceptFolders: StringBuilder
-
- // The public interface is used to send information back to the parent activity.
- interface MoveToFolderListener {
- fun onMoveToFolder(dialogFragment: DialogFragment)
- }
-
- override fun onAttach(context: Context) {
- // Run the default commands.
- super.onAttach(context)
-
- // Get a handle for the move to folder listener from the launching context.
- moveToFolderListener = context as MoveToFolderListener
- }
-