解决SpellCheckerSession泄漏?SpellCheckerSession

2023-09-07 18:04:27 作者:别用你那舔过B的嘴说爱我

我发现我的活动泄漏的ICS模拟器。 HPROF似乎表明 SpellCheckerSession 保存四周,似乎已经修复一提到我的活动:

I discovered my Activity is leaking on the ICS emulator. HProf seemed to show SpellCheckerSession keeping a reference to my Activity around, and there appears to have been a fix:

https://github.com/android/platform_frameworks_base/commit/df3722895172e03c81787f62d922daabaad3e20b

但有什么办法可以解决这个的平均时间?我可以禁用拼写检查不知何故?

But is there any way to work around this in the mean time? Can I disable spell checking somehow?

推荐答案

我发现了同样的问题。解决方法是禁用拼写检查所有的EditText领域。

I've found the same issue. The workaround was to disable spell checking for all EditText fields.

在这里看到我的回应:Why不EditView中保留其活性的语境冰淇淋三明治

See my response here: Why does EditView retain its Activity's Context in Ice Cream Sandwich

相关推荐