public 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 fields

static final @NonNull KnownIssue

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

static final @NonNull KnownIssue

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

static final @NonNull KnownIssue

TEST ONLY known issue that only applies to robolectric devices

static final @NonNull KnownIssue

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

Protected constructors

Public fields

KI_350037023

public static final @NonNull KnownIssue KI_350037023

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

public static final @NonNull KnownIssue KI_350037348

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

public static final @NonNull KnownIssue KI_372917199

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

public static final @NonNull KnownIssue KI_398591036

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()