sealed class KnownIssues


List of all known issues reportable by BackportedFixManager.

These are critical issues with fixes that are backported to existing android releases and are reasonable for app developers to guard a code block with []BackportedFixManager.isFixed].

Each known issue includes sample usage.

The id and alias of a known issue comes from the list of approved backported fixes in the Android Compatibility Test source directory cts/backported_fixes/approved.

Summary

Public companion properties

KnownIssue

TEST ONLY known issue that is always fixed on a device.

KnownIssue

TEST ONLY known issue that is never fixed on a device.

KnownIssue

TEST ONLY known issue that only applies to robolectric devices

KnownIssue

Abnormal color tone when capturing JPEG-R images on some Pixel devices.

Protected constructors

Public companion properties

KI_350037023

val KI_350037023KnownIssue

TEST ONLY known issue that is always fixed on a device.

import androidx.core.backported.fixes.BackportedFixManager
import androidx.core.backported.fixes.KnownIssues

val bf = BackportedFixManager()
if (bf.isFixed(KnownIssues.KI_350037023)) {
    println("Hello world")
} else {
    // Since the known issue is not fixed
    println("Goodbye")
}

KI_350037348

val KI_350037348KnownIssue

TEST ONLY known issue that is never fixed on a device.

import androidx.core.backported.fixes.BackportedFixManager
import androidx.core.backported.fixes.KnownIssues

val bf = BackportedFixManager()
if (bf.isFixed(KnownIssues.KI_350037348)) {
    println("Hello world")
} else {
    // Since the known issue is not fixed
    println("Goodbye")
}

KI_372917199

val KI_372917199KnownIssue

TEST ONLY known issue that only applies to robolectric devices

import androidx.core.backported.fixes.BackportedFixManager
import androidx.core.backported.fixes.KnownIssues

val bf = BackportedFixManager()
if (bf.isFixed(KnownIssues.KI_372917199)) {
    println("Hello world")
} else {
    // Since the known issue is not fixed
    println("Goodbye")
}

KI_398591036

val KI_398591036KnownIssue

Abnormal color tone when capturing JPEG-R images on some Pixel devices.

Fix by using JPEG outputs until this KI is resolved.

import androidx.core.backported.fixes.BackportedFixManager
import androidx.core.backported.fixes.KnownIssues

val bf = BackportedFixManager()
val format =
    if (bf.isFixed(KnownIssues.KI_398591036)) {
        "JPEG-R"
    } else {
        "JPEG"
    }

Full details are at issue #398591036.

Protected constructors

KnownIssues

protected KnownIssues()