pawel.rybicki
09/03/2019, 3:55 PMMarko Mitic
09/03/2019, 3:56 PMsetText
, allowedUrls won't be initialized in timeEugen Martynov
09/03/2019, 3:57 PMwasyl
09/03/2019, 3:58 PMCasey Brooks
09/03/2019, 3:58 PMTextView
base class:
public TextView(
Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
// TextView is important by default, unless app developer overrode attribute.
if (getImportantForAutofill() == IMPORTANT_FOR_AUTOFILL_AUTO) {
setImportantForAutofill(IMPORTANT_FOR_AUTOFILL_YES);
}
setTextInternal(""); <-- THIS IS THE CRASH
streetsofboston
09/03/2019, 3:59 PMpawel.rybicki
09/03/2019, 4:01 PMpawel.rybicki
09/03/2019, 4:09 PMwasyl
09/03/2019, 4:12 PMsetTextInternal
, but there’s another setText
call in the constructor. But maybe it’s only there on certain Android versions?pawel.rybicki
09/03/2019, 4:22 PMCasey Brooks
09/03/2019, 4:31 PM?.let
call, it might be that the initial textViewMessage
is null in the majority of casespawel.rybicki
09/03/2019, 4:35 PM