Merge "Fix unable to change language" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-04-26 03:11:34 +00:00
committed by Android (Google) Code Review

View File

@@ -37,7 +37,7 @@ class LocaleRecyclerView extends RecyclerView {
@Override
public boolean onTouchEvent(MotionEvent e) {
if (e.getAction() == MotionEvent.ACTION_UP) {
if (e.getAction() == MotionEvent.ACTION_UP || e.getAction() == MotionEvent.ACTION_CANCEL) {
LocaleDragAndDropAdapter adapter = (LocaleDragAndDropAdapter) this.getAdapter();
if (adapter != null) {
adapter.doTheUpdate();