6

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?

HitOdessit
  • 7,198
  • 4
  • 36
  • 59
Timmmm
  • 88,195
  • 71
  • 364
  • 509

2 Answers2

0

Does it need a Context? Maybe pass the Application Context by using activity.getApplicationContext().

dnkoutso
  • 6,041
  • 4
  • 37
  • 58
0

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

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

Community
  • 1
  • 1
Marten
  • 3,802
  • 1
  • 17
  • 26