Undeprecate selection tracker

pull/214/head
M66B 9 months ago
parent 0d5efc6394
commit 9a13ffcbaf

@ -650,7 +650,7 @@ public abstract class SelectionTracker<K> {
* @deprecated GestureSelection is best bound to {@link MotionEvent#TOOL_TYPE_FINGER},
* and only that tool type. This method will be removed in a future release.
*/
@Deprecated
//@Deprecated
public @NonNull Builder<K> withGestureTooltypes(@NonNull int... toolTypes) {
Log.w(TAG, "Setting gestureTooltypes is likely to result in unexpected behavior.");
mGestureToolTypes = toolTypes;

@ -2079,7 +2079,7 @@ public class FragmentMessages extends FragmentBase
StorageStrategy.createLongStorage())
.withSelectionPredicate(selectionPredicate)
// https://issuetracker.google.com/issues/154178289
.withGestureTooltypes(MotionEvent.TOOL_TYPE_FINGER, MotionEvent.TOOL_TYPE_STYLUS) // TODO CASA
.withGestureTooltypes(MotionEvent.TOOL_TYPE_FINGER, MotionEvent.TOOL_TYPE_STYLUS)
.build();
adapter.setSelectionTracker(selectionTracker);

Loading…
Cancel
Save