summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorTarandeep Singh <tarandeep@google.com>2018-05-18 13:53:53 -0700
committerTarandeep Singh <tarandeep@google.com>2018-05-22 19:10:20 +0000
commitd59c695a7875b22a9ac374dff10c62e91e534d81 (patch)
tree92c89f5b14c6fe8c46d9098f0978a64961e31886 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent52ecba88d181e64da8bd16f7e2d771812bd8a25b (diff)
Stop using unsupported Canvas operations in IME
KeyboardView relies on deprecated Canvas#clipRect(Rect, Op.REPLACE). This method is now unsupported and throws runtime exception. Operations other than Difference and Intersect are unsupported. This method call can be replaced by saving initial Canvas and calling intersect operation of Canvas#clipRect(Rect). Saving initial state can be achieved using Canvas.save() and Canvas.restore(). Fixes: 79777033 Test: Manually verified with SoftKeyboard (which uses KeyboardView) 1. m SoftKeyboard 2. Set current keyboard to SoftKeyboard 3. SoftKeyboard runs fine Test: Tested Canvas.getClipBounds() is consistent across save() & .restore() operations Change-Id: Id34c289f152b2ec06f37fffa9f940a909153447c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions