aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/research/FeedbackActivity.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2012-08-02 20:22:29 -0700
committerKurt Partridge <kep@google.com>2012-08-21 22:37:33 -0700
commitbf653996eab40e2c66cfd2eaeb48ed5175b78455 (patch)
treedf19f8c08c6a6b1b1f3a3ea1a02105961e719953 /java/src/com/android/inputmethod/research/FeedbackActivity.java
parentf8528914375be9bd4520444faa1bcd4381a4ee80 (diff)
downloadlatinime-bf653996eab40e2c66cfd2eaeb48ed5175b78455.tar.gz
latinime-bf653996eab40e2c66cfd2eaeb48ed5175b78455.tar.xz
latinime-bf653996eab40e2c66cfd2eaeb48ed5175b78455.zip
ResearchLogging capture full n-gram data
- Captures complete motion data for all words in an n-gram. - Also filters n-grams properly; if any word in the n-gram is not in the dictionary, it is not included. - Simplify ResearchLog to not require explicit state - Added LogBuffer class MainLogBuffer class to allow n-gram-level decisions about privacy. - Moved LogUnit out from ResearchLogger multi-project change with Ic70ccb6c2e11eb02d887821434b44daa3eb7a3e2 Bug: 6188932 Change-Id: I731d6cff6539e997874f723b68bdb0d9b651b937
Diffstat (limited to 'java/src/com/android/inputmethod/research/FeedbackActivity.java')
-rw-r--r--java/src/com/android/inputmethod/research/FeedbackActivity.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/research/FeedbackActivity.java b/java/src/com/android/inputmethod/research/FeedbackActivity.java
index c9f3b476a..11eae8813 100644
--- a/java/src/com/android/inputmethod/research/FeedbackActivity.java
+++ b/java/src/com/android/inputmethod/research/FeedbackActivity.java
@@ -18,10 +18,7 @@ package com.android.inputmethod.research;
import android.app.Activity;
import android.os.Bundle;
-import android.text.Editable;
-import android.view.View;
import android.widget.CheckBox;
-import android.widget.EditText;
import com.android.inputmethod.latin.R;
@@ -31,6 +28,11 @@ public class FeedbackActivity extends Activity {
super.onCreate(savedInstanceState);
setContentView(R.layout.research_feedback_activity);
final FeedbackLayout layout = (FeedbackLayout) findViewById(R.id.research_feedback_layout);
+ final CheckBox checkbox = (CheckBox) findViewById(R.id.research_feedback_include_history);
+ final CharSequence cs = checkbox.getText();
+ final String actualString = String.format(cs.toString(),
+ ResearchLogger.FEEDBACK_WORD_BUFFER_SIZE);
+ checkbox.setText(actualString);
layout.setActivity(this);
}