summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorlumark <lumark@google.com>2020-03-08 00:43:23 +0800
committerlumark <lumark@google.com>2020-03-13 19:22:49 +0800
commitec78f00fe91401900f863a996eff584a65122266 (patch)
treefff37f188e19e5de51eb5213be0d5359c7dac274 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent6a2213ae2e416dc81c2bef4f77a0073bae7f5f77 (diff)
Set mNextServedView as null only when current served view lost focus
mNextServedView is set to null when the next view focus is lost. but we should not set mNextServedView as null when received the next view focus is lost but the view is not the current served view. It can happen when received next view focused but input connection will disconnect when mNextServidedView is null. The issue is found when the Activity has ListView which added SearchView as a list item. When the Activity is launched, input connection will be started when activity window focused and served view will be SearchView since search view request focus by default, then when user taps SearchView, several view focus in/out events comes out quickly that may cause mNextServedView set to null when the conteiner View lost focus, so input connection will be disconnected since ImeFocusController#checkFocus checked there is no next served view. The fix is to set mNextServedView as null only when the current served view loses focus. Fix: 148974380 Test: atest FocusHandlingTests Change-Id: I9e90428387fcf43fbf86a8407de7535913202872
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions