ResearchLogging fix password field collection
password data collection was too "sticky"; the next field wouldn't be collected either. Change-Id: I739a956f663cff33216f83ac453b2a89d8c33ddemain
parent
359c35e0f6
commit
6c95f97a93
|
@ -60,6 +60,7 @@ import com.android.inputmethod.keyboard.MainKeyboardView;
|
||||||
import com.android.inputmethod.latin.CollectionUtils;
|
import com.android.inputmethod.latin.CollectionUtils;
|
||||||
import com.android.inputmethod.latin.Constants;
|
import com.android.inputmethod.latin.Constants;
|
||||||
import com.android.inputmethod.latin.Dictionary;
|
import com.android.inputmethod.latin.Dictionary;
|
||||||
|
import com.android.inputmethod.latin.InputTypeUtils;
|
||||||
import com.android.inputmethod.latin.LatinIME;
|
import com.android.inputmethod.latin.LatinIME;
|
||||||
import com.android.inputmethod.latin.R;
|
import com.android.inputmethod.latin.R;
|
||||||
import com.android.inputmethod.latin.RichInputConnection;
|
import com.android.inputmethod.latin.RichInputConnection;
|
||||||
|
@ -791,8 +792,11 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
public static void latinIME_onStartInputViewInternal(final EditorInfo editorInfo,
|
public static void latinIME_onStartInputViewInternal(final EditorInfo editorInfo,
|
||||||
final SharedPreferences prefs) {
|
final SharedPreferences prefs) {
|
||||||
final ResearchLogger researchLogger = getInstance();
|
final ResearchLogger researchLogger = getInstance();
|
||||||
researchLogger.start();
|
|
||||||
if (editorInfo != null) {
|
if (editorInfo != null) {
|
||||||
|
final boolean isPassword = InputTypeUtils.isPasswordInputType(editorInfo.inputType)
|
||||||
|
|| InputTypeUtils.isVisiblePasswordInputType(editorInfo.inputType);
|
||||||
|
getInstance().setIsPasswordView(isPassword);
|
||||||
|
researchLogger.start();
|
||||||
final Context context = researchLogger.mInputMethodService;
|
final Context context = researchLogger.mInputMethodService;
|
||||||
try {
|
try {
|
||||||
final PackageInfo packageInfo;
|
final PackageInfo packageInfo;
|
||||||
|
@ -1059,7 +1063,6 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
keyboard.mOccupiedHeight,
|
keyboard.mOccupiedHeight,
|
||||||
keyboard.mKeys
|
keyboard.mKeys
|
||||||
};
|
};
|
||||||
getInstance().setIsPasswordView(isPasswordView);
|
|
||||||
getInstance().enqueueEvent(EVENTKEYS_MAINKEYBOARDVIEW_SETKEYBOARD, values);
|
getInstance().enqueueEvent(EVENTKEYS_MAINKEYBOARDVIEW_SETKEYBOARD, values);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue