Wilson Wu
93cdaafcb9
Refine the surrounding text copy logic
...
Our CL [1] used to copy the original surrounding text
in case the text is updated unexpectedly before the
surrounding text retrieval.
Refine the copy logic by:
-. Move copy action to the InitialSurroundingText constructor
-. Apply a deep copy with parcelable, it also avoid the text
span is updated later
[1] I6082a4cae2fcdc4c529dc14e2e5e7a45ab1aae4d
Bug: 160390184
Fixes: 163176179
Test: atest FrameworksCoreTests:EditorInfoTest
Test: atest CtsInputMethodTestCases:EditorInfoTest
Change-Id: I75edcf6046467f2776d62bb38137f9d15dbfab52
2020-09-18 14:00:17 +08:00
..
2020-08-26 17:35:13 +08:00
2020-05-18 13:56:09 -04:00
2020-07-23 20:26:12 +08:00
2020-07-10 18:42:56 -07:00
2020-09-18 14:00:17 +08:00
2020-05-01 18:25:32 +00:00
2020-07-09 10:49:14 +01:00
2020-07-15 11:28:36 +08:00
2020-04-27 22:11:29 +02:00
2020-05-11 13:30:14 +08:00
2020-04-21 13:33:47 +08:00
2020-06-16 02:10:21 +08:00
2020-06-15 19:26:38 -07:00
2020-07-24 22:03:51 +00:00
2020-08-28 00:10:42 +08:00
2020-08-03 11:36:54 +08:00
2020-05-06 09:38:39 -04:00
2020-07-08 23:06:14 +00:00
2020-05-20 17:34:17 -07:00
2020-07-17 18:09:13 +02:00
2020-08-12 18:01:26 +00:00
2020-08-04 09:55:35 -05:00
2020-08-21 14:37:04 -05:00
2020-08-18 11:15:07 -07:00
2020-06-22 16:55:54 +02:00
2020-08-26 22:36:51 +08:00
2020-06-22 16:55:54 +02:00
2020-08-26 22:36:51 +08:00
2020-06-23 00:58:05 +08:00
2020-07-09 14:46:55 +02:00
2020-06-26 13:40:07 +00:00
2020-08-26 22:36:51 +08:00
2020-06-30 13:36:04 +02:00
2020-04-20 15:07:59 +00:00
2020-04-20 15:07:59 +00:00
2020-04-20 15:07:59 +00:00
2020-07-08 23:06:14 +00:00
2020-05-19 10:51:56 -07:00
2020-08-03 11:36:54 +08:00
2020-07-15 09:42:20 -07:00
2020-08-25 15:27:13 -07:00
2020-05-12 19:11:13 +01:00
2020-06-15 19:36:37 +08:00
2020-04-20 15:07:59 +00:00
2020-04-20 15:07:59 +00:00
2020-04-20 15:07:59 +00:00
2020-04-20 15:07:59 +00:00
2020-04-20 15:07:59 +00:00
2020-07-30 08:54:03 -07:00
2020-08-10 18:33:25 +00:00
2020-06-26 13:40:07 +00:00
2020-06-29 21:42:03 +00:00
2020-06-17 23:10:30 +00:00
2020-06-02 14:20:05 -04:00
2020-05-07 14:12:21 -07:00
2020-05-01 18:25:32 +00:00
2020-08-05 13:15:28 +00:00
2020-08-03 11:36:54 +08:00
2020-07-21 23:03:22 +00:00
2020-05-06 09:38:39 -04:00
2020-08-19 11:13:22 -07:00
2020-09-03 07:14:31 +00:00
2020-06-22 16:55:54 +02:00
2020-08-03 11:36:54 +08:00
2020-07-15 19:00:19 +08:00
2020-06-20 03:51:00 +00:00
2020-08-20 13:45:11 +00:00
2020-06-26 13:40:07 +00:00
2020-09-01 22:03:37 +08:00
2020-04-27 17:20:42 +00:00
2020-08-26 22:36:51 +08:00
2020-07-17 08:44:19 -07:00
2020-05-04 11:41:13 +08:00