From fd340d2d9414e3b3fdfdacf68261cd7edfc5706f Mon Sep 17 00:00:00 2001 From: "mazen.rashed@mawdoo3.com" Date: Sun, 13 Sep 2020 15:21:45 +0300 Subject: [PATCH] Migrate to AndroidX Fix Android 28 issue by ask for fine location permission before scanning open toByteArray function in Converter.kt https://github.com/mazenrashed/Printooth/issues/27 --- .../java/com/mazenrashed/printooth/data/converter/Converter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printooth/src/main/java/com/mazenrashed/printooth/data/converter/Converter.kt b/printooth/src/main/java/com/mazenrashed/printooth/data/converter/Converter.kt index f285ee0..884b579 100644 --- a/printooth/src/main/java/com/mazenrashed/printooth/data/converter/Converter.kt +++ b/printooth/src/main/java/com/mazenrashed/printooth/data/converter/Converter.kt @@ -4,7 +4,7 @@ package com.mazenrashed.printooth.data.converter * Base class to convert a string into a byte array */ abstract class Converter { - fun toByteArray(input: String): ByteArray { + open fun toByteArray(input: String): ByteArray { val text = convert(input) return try { var i = 0