Always remember the last touch mode state when touch mode changes.

Do not just rely on getting an onWindowFocusChanged() event. There are cases
where we might not get it (view removed from the window for instance.)
This commit is contained in:
Romain Guy
2010-02-08 14:58:01 -08:00
parent 5d36c46d2d
commit 498b2960d5

View File

@@ -1953,6 +1953,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
}
}
}
mLastTouchMode = isInTouchMode ? TOUCH_MODE_ON : TOUCH_MODE_OFF;
}
@Override