<commit_before>package com.jdroid.android.view;

import android.content.Context;
import android.text.InputType;
import android.util.AttributeSet;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import com.jdroid.android.utils.AndroidUtils;

/**
 * 
 * @author <NAME>
 */
public class EmailAutoCompleteTextView extends AutoCompleteTextView {
	
	public EmailAutoCompleteTextView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		init();
	}
	
	public EmailAutoCompleteTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
		init();
	}
	
	public EmailAutoCompleteTextView(Context context) {
		super(context);
		init();
	}
	
	private void init() {
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(getContext(),
				android.R.layout.simple_dropdown_item_1line, AndroidUtils.getAccountsEmails());
		setAdapter(adapter);
		setThreshold(1);
		setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);
	}
	
}<commit_msg>Email auto complete next fix<commit_after>package com.jdroid.android.view;

import android.content.Context;
import android.text.InputType;
import android.util.AttributeSet;
import android.view.inputmethod.EditorInfo;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import com.jdroid.android.utils.AndroidUtils;

/**
 * 
 * @author <NAME>
 */
public class EmailAutoCompleteTextView extends AutoCompleteTextView {
	
	public EmailAutoCompleteTextView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		init();
	}
	
	public EmailAutoCompleteTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
		init();
	}
	
	public EmailAutoCompleteTextView(Context context) {
		super(context);
		init();
	}
	
	private void init() {
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(getContext(),
				android.R.layout.simple_dropdown_item_1line, AndroidUtils.getAccountsEmails());
		setAdapter(adapter);
		setThreshold(1);
		setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);
		setImeOptions(EditorInfo.IME_ACTION_NEXT);
	}
	
}
{'fraction_non_alphanumeric': 0.10442144873000941, 'fraction_numerical': 0.0018814675446848542, 'mean_word_length': 6.09, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3144510', 'n_tokens_mistral': 660, 'n_tokens_neox': 621, 'n_words': 121}