Allow importing binary files on Android 9

The previous check was off by one version. The workaround needs to be
applied on Android versions up to *and including* Android 9 (Pie), so
it should be applied unless we are on Android >= 10 (Q).
This commit is contained in:
Tom Levy 2025-02-14 10:45:49 +00:00
parent f735763c21
commit 73d736c4cd

View file

@ -31,7 +31,7 @@ import org.fossify.commons.helpers.NavigationIcon
import org.fossify.commons.helpers.PROTECTION_FINGERPRINT import org.fossify.commons.helpers.PROTECTION_FINGERPRINT
import org.fossify.commons.helpers.SHOW_ALL_TABS import org.fossify.commons.helpers.SHOW_ALL_TABS
import org.fossify.commons.helpers.ensureBackgroundThread import org.fossify.commons.helpers.ensureBackgroundThread
import org.fossify.commons.helpers.isPiePlus import org.fossify.commons.helpers.isQPlus
import org.fossify.commons.helpers.isTiramisuPlus import org.fossify.commons.helpers.isTiramisuPlus
import org.fossify.commons.models.RadioItem import org.fossify.commons.models.RadioItem
import org.fossify.messages.R import org.fossify.messages.R
@ -63,7 +63,7 @@ class SettingsActivity : SimpleActivity() {
add("application/json") add("application/json")
add("application/xml") add("application/xml")
add("text/xml") add("text/xml")
if (!isPiePlus()) { if (!isQPlus()) {
add("application/octet-stream") add("application/octet-stream")
} }
} }