Fixed
Status Update
Comments
ki...@google.com <ki...@google.com>
te...@google.com <te...@google.com> #2
So what is the recommendation on where to observe LiveData? onViewCreated? Because at one point, the docs were using onActivityCreated.
al...@google.com <al...@google.com>
ap...@google.com <ap...@google.com> #3
Re #2 - They're called back to back, so they'd be equally valid (for a Fragment with a View).
Description
Component used: AppCompat Version used: appcompat-1.2.0 Devices/Android versions reproduced on: Oreo, API level 26 & 27
To reproduce:
This arises from the fact that
AppCompatTextView.setCustomActionModeCallback
accepts nullables, but internally calls toTextViewCompat.wrapCustomSelectionActionModeCallback
, which requires a non-null callback.Offending lines:
To fix this, the OreoCallback wrapping should be skipped if the callback is null.