Fixed
Status Update
Comments
al...@google.com <al...@google.com>
ap...@google.com <ap...@google.com> #2
Or when changing to textView.textMetricsParamsCompat still crash.
private fun setAsyncText(textView: AppCompatTextView, text: String?) {
if (!text.isNullOrEmpty()) {
val textFuture = PrecomputedTextCompat.getTextFuture(text!!, textView.textMetricsParamsCompat, null)
textView.setTextFuture(textFuture) //Crash
}
}
private fun setAsyncText(textView: AppCompatTextView, text: String?) {
if (!text.isNullOrEmpty()) {
val textFuture = PrecomputedTextCompat.getTextFuture(text!!, textView.textMetricsParamsCompat, null)
textView.setTextFuture(textFuture) //Crash
}
}
al...@google.com <al...@google.com> #3
add this line :
textView.setLayoutDirection(ViewCompat.getLayoutDirection(textView));
before :
setTextFuture(....)
textView.setLayoutDirection(ViewCompat.getLayoutDirection(textView));
before :
setTextFuture(....)
ap...@google.com <ap...@google.com> #4
Thanks, #3. It worked.
But I think it is better when set before this line
val textFuture = PrecomputedTextCompat.getTextFuture(text!!, textView.textMetricsParamsCompat, null)
Set android:layoutDirection="locale" or android:layoutDirection="inherit" for AppCompatTextView in the XML layout didn't this problem.
The new method btw re-set layoutDirector. Weird! This should handle in the AppcompatTextView.
private fun setAsyncText(textView: AppCompatTextView, text: String?) {
if (!text.isNullOrEmpty()) {
textView.layoutDirection = textView.layoutDirection
val textFuture = PrecomputedTextCompat.getTextFuture(text!!, textView.textMetricsParamsCompat, null)
textView.setTextFuture(textFuture) //Crash
}
}
But I think it is better when set before this line
val textFuture = PrecomputedTextCompat.getTextFuture(text!!, textView.textMetricsParamsCompat, null)
Set android:layoutDirection="locale" or android:layoutDirection="inherit" for AppCompatTextView in the XML layout didn't this problem.
The new method btw re-set layoutDirector. Weird! This should handle in the AppcompatTextView.
private fun setAsyncText(textView: AppCompatTextView, text: String?) {
if (!text.isNullOrEmpty()) {
textView.layoutDirection = textView.layoutDirection
val textFuture = PrecomputedTextCompat.getTextFuture(text!!, textView.textMetricsParamsCompat, null)
textView.setTextFuture(textFuture) //Crash
}
}
Description
The following lint check is baseline suppressed in your project. Please remove all instances of this suppression from
core/core/lint-baseline.xml
and address the associated issues before your next stable release.55 instance(s) of
ClassVerificationFailure
This call references a method added in API level 19; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 92:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 92:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 92:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 94:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 95:This call references a method added in API level 19; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 98:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 98:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 98:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 100:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 100:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 102:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 103:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 105:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 107:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 111:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 127:This call references a method added in API level 26; however, the containing class androidx.core.graphics.ColorUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/ColorUtils.java
at line 127:This call references a method added in API level 19; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 79:This call references a method added in API level 19; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 96:This call references a method added in API level 21; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 111:This call references a method added in API level 21; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 124:This call references a method added in API level 21; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 136:This call references a method added in API level 21; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 150:This call references a method added in API level 21; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 164:This call references a method added in API level 19; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 178:This call references a method added in API level 21; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 189:This call references a method added in API level 21; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 198:This call references a method added in API level 21; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 211:This call references a method added in API level 19; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 232:This call references a method added in API level 19; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 242:This call references a method added in API level 21; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 269:This call references a method added in API level 23; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 355:This call references a method added in API level 23; however, the containing class androidx.core.graphics.drawable.DrawableCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/DrawableCompat.java
at line 392:This call references a method added in API level 23; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 546:This call references a method added in API level 26; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 550:This call references a method added in API level 23; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 552:This call references a method added in API level 23; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 557:This call references a method added in API level 23; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 560:This call references a method added in API level 23; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 563:This call references a method added in API level 26; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 580:This call references a method added in API level 23; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 582:This call references a method added in API level 23; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 590:This call references a method added in API level 23; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 593:This call references a method added in API level 23; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 641:This call references a method added in API level 26; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 694:This call references a method added in API level 28; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 1101:This call references a method added in API level 28; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 1129:This call references a method added in API level 28; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 1158:This call references a method added in API level 28; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 1186:This call references a method added in API level 30; however, the containing class androidx.core.graphics.drawable.IconCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/drawable/IconCompat.java
at line 567:This call references a method added in API level 29; however, the containing class androidx.core.graphics.Insets is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/Insets.java
at line 198:This call references a method added in API level 23; however, the containing class androidx.core.graphics.PaintCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/PaintCompat.java
at line 52:This call references a method added in API level 29; however, the containing class androidx.core.graphics.PaintCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/PaintCompat.java
at line 127:This call references a method added in API level 26; however, the containing class androidx.core.graphics.PathUtils is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/PathUtils.java
at line 60:This call references a method added in API level 19; however, the containing class androidx.core.graphics.TypefaceCompatUtil is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/graphics/TypefaceCompatUtil.java
at line 110: