LatinIME/java
Kurt Partridge a68cace7d1 Avoid NPE by fixing ResearchLogger initialization
Previously, mMainResearchLog and mMainLogBuffer were set up
when the user moved to a new TextView, and set to null when
the user left the TextView.  This change causes
mMainResearchLog, mMainLogBuffer, mFeedbackLog, and
mFeedbackLogBuffer to be non-null forever after init() is
called.  start() no longer sets up these fields; instead
they are cleared and reset every time stop() is called.
Checks for null values are now removed.

The earlier code just didn't initialize these variables if
the user disabled logging, but since the new version
invariantly keeps these variables valid, we add a check for
whether the user has enabled logging in publishLogUnits().

Change-Id: Ifde3517f1cf924cfa33cda95fec24529b52b3c08
2013-05-09 18:38:32 -07:00
..
res Remove unused device form factor values 2013-05-07 18:52:22 +09:00
src/com/android/inputmethod Avoid NPE by fixing ResearchLogger initialization 2013-05-09 18:38:32 -07:00
Android.mk Just a cosmetic cleanup 2012-07-28 21:24:29 +09:00
AndroidManifest.xml Add permissions for personalization 2013-05-01 17:10:20 +09:00
MODULE_LICENSE_APACHE2
NOTICE Add notice for Lexiteria dictionaries. 2012-10-05 11:08:31 +09:00
proguard.flags Add @UsedForTesting and @ExternallyReferenced annotations 2012-10-22 11:18:43 -07:00