summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Wilson Wu <wilsonwu@google.com> 2022-10-11 17:57:18 +0800
committer Ming-Shin Lu <lumark@google.com> 2022-10-24 09:07:00 +0000
commitb63dc53330915dee803ede87c3b381793dc99ce4 (patch)
tree74e62f73ec555510cff130d272cd7460e47977f1 /libs/androidfw/StringPool.cpp
parente79e299e33a116ccb35ba968180b4e66e818c52b (diff)
Simplify IMM#hasActiveConnectionInternal(View)
After CL[1] and CL[2], IMM#hasActiveConnectionInternal(View) only used by onPostWindowGainedFocus(View, LayoutParams). However, the condition only need to verify the given view is associated with current active input connection. Hence we can remove the mServedInputConnection.isActive() check to simplify the method. [1]: I64412e87c4881018ea67140f9472e10ea41836e4 [2]: I7fe8b18ffbb450fd1e272e15f06f2629518f320c Bug: 182259171 Test: atest CtsInputMethodTestCases Test: make -j CtsInputMethod1 \ CtsInputMethod2 \ CtsInputMethodServiceDeviceTests \ CtsInputMethodServiceEventProvider \ CtsInputMethodServiceHostTestCases \ EditTextApp && atest -it \ CtsInputMethodServiceHostTestCases:InputMethodServiceLifecycleTest Change-Id: Ib0c6827c58dd082a5f70b6ec508536b24cf42dcd
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions