Hide keyboard on detaching fragment

Do we really need to do this ourselves, Google?
This commit is contained in:
M66B
2018-08-05 12:09:46 +00:00
parent 10e96f6a3f
commit 8d42f6809f
13 changed files with 72 additions and 87 deletions

View File

@@ -25,11 +25,9 @@ import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.TextInputLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.AsyncTaskLoader;
import android.support.v4.content.Loader;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
@@ -54,7 +52,7 @@ import java.util.Properties;
import javax.mail.Session;
import javax.mail.Transport;
public class FragmentIdentity extends Fragment {
public class FragmentIdentity extends FragmentEx {
private List<Provider> providers;
private Spinner spProfile;
@@ -75,6 +73,8 @@ public class FragmentIdentity extends Fragment {
@Override
@Nullable
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
setSubtitle(R.string.title_edit_identity);
View view = inflater.inflate(R.layout.fragment_identity, container, false);
// Get arguments
@@ -188,12 +188,6 @@ public class FragmentIdentity extends Fragment {
return view;
}
@Override
public void onResume() {
super.onResume();
((AppCompatActivity) getActivity()).getSupportActionBar().setSubtitle(R.string.title_edit_identity);
}
private static class PutLoader extends AsyncTaskLoader<Throwable> {
private Bundle args;