refactor(ProfileFragment): remove duplicated InputType setting
The NoteEdit InputType is already set in the UI file.
This commit is contained in:
@@ -287,11 +287,10 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
|
|||||||
noteEdit.setOnFocusChangeListener((v, hasFocus)->{
|
noteEdit.setOnFocusChangeListener((v, hasFocus)->{
|
||||||
if(hasFocus){
|
if(hasFocus){
|
||||||
hideFab();
|
hideFab();
|
||||||
noteEdit.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
|
return;
|
||||||
}else{
|
|
||||||
showFab();
|
|
||||||
savePrivateNote(noteEdit.getText().toString());
|
|
||||||
}
|
}
|
||||||
|
showFab();
|
||||||
|
savePrivateNote(noteEdit.getText().toString());
|
||||||
});
|
});
|
||||||
|
|
||||||
FrameLayout sizeWrapper=new FrameLayout(getActivity()){
|
FrameLayout sizeWrapper=new FrameLayout(getActivity()){
|
||||||
|
|||||||
Reference in New Issue
Block a user