loadPuzzle

private fun loadPuzzle(position: Int)

Loads and displays the puzzle grid, with the correct tile images (8 tiles with no filter applied and 1 tile with a dark color filter applied to designate it as the blank tile).

private fun loadPuzzle(imagePath: Uri?)

Sets the puzzle image to the photo chosen from the Gallery and performs the necessary bitmap manipulations to update the display on the puzzle grid.

Parameters

imagePath

URI to the Gallery photo that will be set as the puzzle image.