Loading java/src/com/android/inputmethod/research/ResearchLogger.java +12 −10 Original line number Diff line number Diff line Loading @@ -925,6 +925,8 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang public static void latinIME_onWindowHidden(final int savedSelectionStart, final int savedSelectionEnd, final InputConnection ic) { if (ic != null) { final Object[] values = new Object[2]; if (OUTPUT_ENTIRE_BUFFER) { // Capture the TextView contents. This will trigger onUpdateSelection(), so we // set sLatinIMEExpectingUpdateSelection so that when onUpdateSelection() is called, // it can tell that it was generated by the logging code, and not by the user, and Loading @@ -932,11 +934,11 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang ic.beginBatchEdit(); ic.performContextMenuAction(android.R.id.selectAll); CharSequence charSequence = ic.getSelectedText(0); if (savedSelectionStart != -1 && savedSelectionEnd != -1) { ic.setSelection(savedSelectionStart, savedSelectionEnd); } ic.endBatchEdit(); sLatinIMEExpectingUpdateSelection = true; final Object[] values = new Object[2]; if (OUTPUT_ENTIRE_BUFFER) { if (TextUtils.isEmpty(charSequence)) { values[0] = false; values[1] = ""; Loading Loading
java/src/com/android/inputmethod/research/ResearchLogger.java +12 −10 Original line number Diff line number Diff line Loading @@ -925,6 +925,8 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang public static void latinIME_onWindowHidden(final int savedSelectionStart, final int savedSelectionEnd, final InputConnection ic) { if (ic != null) { final Object[] values = new Object[2]; if (OUTPUT_ENTIRE_BUFFER) { // Capture the TextView contents. This will trigger onUpdateSelection(), so we // set sLatinIMEExpectingUpdateSelection so that when onUpdateSelection() is called, // it can tell that it was generated by the logging code, and not by the user, and Loading @@ -932,11 +934,11 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang ic.beginBatchEdit(); ic.performContextMenuAction(android.R.id.selectAll); CharSequence charSequence = ic.getSelectedText(0); if (savedSelectionStart != -1 && savedSelectionEnd != -1) { ic.setSelection(savedSelectionStart, savedSelectionEnd); } ic.endBatchEdit(); sLatinIMEExpectingUpdateSelection = true; final Object[] values = new Object[2]; if (OUTPUT_ENTIRE_BUFFER) { if (TextUtils.isEmpty(charSequence)) { values[0] = false; values[1] = ""; Loading