mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Hide keyboard on detaching fragment
Do we really need to do this ourselves, Google?
This commit is contained in:
@@ -25,9 +25,7 @@ import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.constraint.Group;
|
||||
import android.support.design.widget.FloatingActionButton;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.support.v4.app.FragmentTransaction;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.view.LayoutInflater;
|
||||
@@ -37,7 +35,7 @@ import android.widget.ProgressBar;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class FragmentIdentities extends Fragment {
|
||||
public class FragmentIdentities extends FragmentEx {
|
||||
private RecyclerView rvIdentity;
|
||||
private ProgressBar pbWait;
|
||||
private Group grpReady;
|
||||
@@ -48,6 +46,8 @@ public class FragmentIdentities extends Fragment {
|
||||
@Override
|
||||
@Nullable
|
||||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
||||
setSubtitle(R.string.title_list_identities);
|
||||
|
||||
View view = inflater.inflate(R.layout.fragment_identities, container, false);
|
||||
|
||||
// Get controls
|
||||
@@ -93,10 +93,4 @@ public class FragmentIdentities extends Fragment {
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
((AppCompatActivity) getActivity()).getSupportActionBar().setSubtitle(R.string.title_list_identities);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user