-removed unneeded inputType attribute from xml files (+1 squashed commits)

Squashed commits:

[ef54e68] -code style fixing
This commit is contained in:
Daniel Ramos 2015-04-30 00:44:01 +01:00
parent c0fbafde68
commit e159e619d2
3 changed files with 10 additions and 12 deletions

View File

@ -89,9 +89,9 @@ public class CreateKeyEmailFragment extends Fragment {
View view = inflater.inflate(R.layout.create_key_email_fragment, container, false); View view = inflater.inflate(R.layout.create_key_email_fragment, container, false);
mEmailEdit = (EmailEditText) view.findViewById(R.id.create_key_email); mEmailEdit = (EmailEditText) view.findViewById(R.id.create_key_email);
View mBackButton = view.findViewById(R.id.create_key_back_button); View backButton = view.findViewById(R.id.create_key_back_button);
View mNextButton = view.findViewById(R.id.create_key_next_button); View nextButton = view.findViewById(R.id.create_key_next_button);
RecyclerView mEmailsRecyclerView = (RecyclerView) view.findViewById(R.id.create_key_emails); RecyclerView emailsRecyclerView = (RecyclerView) view.findViewById(R.id.create_key_emails);
// initial values // initial values
mEmailEdit.setText(mCreateKeyActivity.mEmail); mEmailEdit.setText(mCreateKeyActivity.mEmail);
@ -100,21 +100,21 @@ public class CreateKeyEmailFragment extends Fragment {
if (mCreateKeyActivity.mEmail == null) { if (mCreateKeyActivity.mEmail == null) {
mEmailEdit.requestFocus(); mEmailEdit.requestFocus();
} }
mBackButton.setOnClickListener(new View.OnClickListener() { backButton.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
mCreateKeyActivity.loadFragment(null, FragAction.TO_LEFT); mCreateKeyActivity.loadFragment(null, FragAction.TO_LEFT);
} }
}); });
mNextButton.setOnClickListener(new View.OnClickListener() { nextButton.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
nextClicked(); nextClicked();
} }
}); });
mEmailsRecyclerView.setHasFixedSize(true); emailsRecyclerView.setHasFixedSize(true);
mEmailsRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity())); emailsRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
mEmailsRecyclerView.setItemAnimator(new DefaultItemAnimator()); emailsRecyclerView.setItemAnimator(new DefaultItemAnimator());
// initial values // initial values
if (mAdditionalEmailModels == null) { if (mAdditionalEmailModels == null) {
@ -133,7 +133,7 @@ public class CreateKeyEmailFragment extends Fragment {
} }
} }
mEmailsRecyclerView.setAdapter(mEmailAdapter); emailsRecyclerView.setAdapter(mEmailAdapter);
return view; return view;
} }
@ -216,7 +216,7 @@ public class CreateKeyEmailFragment extends Fragment {
} }
}; };
// Create a new Messenger for the communication back // Create a new Messenger for the communication back
Messenger messenger = new Messenger(returnHandler); Messenger messenger = new Messenger(returnHandler);
AddEmailDialogFragment addEmailDialog = AddEmailDialogFragment.newInstance(messenger); AddEmailDialogFragment addEmailDialog = AddEmailDialogFragment.newInstance(messenger);
addEmailDialog.show(getActivity().getSupportFragmentManager(), "addEmailDialog"); addEmailDialog.show(getActivity().getSupportFragmentManager(), "addEmailDialog");

View File

@ -21,7 +21,6 @@
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:hint="@string/label_email" android:hint="@string/label_email"
android:imeOptions="actionNext" android:imeOptions="actionNext"
android:inputType="textEmailAddress"
android:textAppearance="?android:attr/textAppearanceMedium" /> android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout> </LinearLayout>

View File

@ -32,7 +32,6 @@
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:imeOptions="actionNext" android:imeOptions="actionNext"
android:inputType="textEmailAddress"
android:hint="@string/label_email" android:hint="@string/label_email"
android:ems="10" /> android:ems="10" />