* You should have received a copy of the GNU General Public License
* along with Privacy Browser. If not, see <http://www.gnu.org/licenses/>.
*/
* You should have received a copy of the GNU General Public License
* along with Privacy Browser. If not, see <http://www.gnu.org/licenses/>.
*/
// Declare the class constants.
private const val FAVORITE_ICON_BYTE_ARRAY = "favorite_icon_byte_array"
// Declare the class constants.
private const val FAVORITE_ICON_BYTE_ARRAY = "favorite_icon_byte_array"
-class CreateBookmarkFolderDialog: DialogFragment() {
+class CreateBookmarkFolderDialog : DialogFragment() {
+ // Declare the class variables.
+ private lateinit var createBookmarkFolderListener: CreateBookmarkFolderListener
+
// The public interface is used to send information back to the parent activity.
interface CreateBookmarkFolderListener {
fun onCreateBookmarkFolder(dialogFragment: DialogFragment, favoriteIconBitmap: Bitmap)
}
// The public interface is used to send information back to the parent activity.
interface CreateBookmarkFolderListener {
fun onCreateBookmarkFolder(dialogFragment: DialogFragment, favoriteIconBitmap: Bitmap)
}
@JvmStatic
fun createBookmarkFolder(favoriteIconBitmap: Bitmap): CreateBookmarkFolderDialog {
// Create a favorite icon byte array output stream.
@JvmStatic
fun createBookmarkFolder(favoriteIconBitmap: Bitmap): CreateBookmarkFolderDialog {
// Create a favorite icon byte array output stream.