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
}
}
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.5 instance(s) of
PrivateConstructorForUtilityClass
Utility class is missing private constructor
Found in
src/main/java/androidx/core/app/AppLaunchChecker.java
at line 36:public class AppLaunchChecker { ~~~~~~~~~~~~~~~~ ```
Utility class is missing private constructor
Found in
src/main/java/androidx/core/content/ContextCompat.java
at line 156:public class ContextCompat { ~~~~~~~~~~~~~ ```
Utility class is missing private constructor
Found in
src/main/java/androidx/core/view/inputmethod/EditorInfoCompat.java
at line 49:public final class EditorInfoCompat { ~~~~~~~~~~~~~~~~ ```
Utility class is missing private constructor
Found in
src/main/java/androidx/core/view/inputmethod/InputConnectionCompat.java
at line 37:public final class InputConnectionCompat { ~~~~~~~~~~~~~~~~~~~~~ ```
Utility class is missing private constructor
Found in
src/main/java/androidx/core/app/NotificationCompat.java
at line 82:public class NotificationCompat { ~~~~~~~~~~~~~~~~~~ ```