diff options
author | 2013-05-20 11:15:02 -0700 | |
---|---|---|
committer | 2013-05-21 14:09:04 -0700 | |
commit | 74a6196c6b7332164a438fa5aabce24b37ffca0e (patch) | |
tree | 3b7ca1687ac9f30e9f42a652423d5aa80af23bea /java/src/com/android/inputmethod/research/ResearchLog.java | |
parent | eb724ddbe92ba4c090fafad42ca65af4fd8d5143 (diff) | |
download | latinime-74a6196c6b7332164a438fa5aabce24b37ffca0e.tar.gz latinime-74a6196c6b7332164a438fa5aabce24b37ffca0e.tar.xz latinime-74a6196c6b7332164a438fa5aabce24b37ffca0e.zip |
Modify isAllowedToLog
Currently isAllowedToLog only checks the state of the
ResearchLogger, and does not consider which log the data is
going to. This causes problems with the logs for Feedback.
The Feedback log should inhibit normal logging procedures,
but the system needs to be able to write specific data
directly to it.
This change renames to isAllowedToLogTo and adds the
destination ResearchLog as a parameter. A FeedbackLog is also
added as a new class so it can be distinguished from other
ResearchLogs.
Change-Id: I5a1eea05bb040c26bf816b89179f44b3024fa2ad
Diffstat (limited to 'java/src/com/android/inputmethod/research/ResearchLog.java')
-rw-r--r-- | java/src/com/android/inputmethod/research/ResearchLog.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/research/ResearchLog.java b/java/src/com/android/inputmethod/research/ResearchLog.java index 3e82139a6..fde2798e1 100644 --- a/java/src/com/android/inputmethod/research/ResearchLog.java +++ b/java/src/com/android/inputmethod/research/ResearchLog.java @@ -81,6 +81,17 @@ public class ResearchLog { } /** + * Returns true if this is a FeedbackLog. + * + * FeedbackLogs record only the data associated with a Feedback dialog. Instead of normal + * logging, they contain a LogStatement with the complete feedback string and optionally a + * recording of the user's supplied demo of the problem. + */ + public boolean isFeedbackLog() { + return false; + } + + /** * Waits for any publication requests to finish and closes the {@link JsonWriter} used for * output. * |