use correct methods for context handling
This commit is contained in:
parent
3306e14ca1
commit
2bc462aa13
1 changed files with 16 additions and 0 deletions
|
@ -18,6 +18,22 @@ import info.nightscout.utils.ImportExportPrefs;
|
|||
*/
|
||||
public class MaintenanceFragment extends Fragment {
|
||||
|
||||
private Fragment f;
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
|
||||
this.f = this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
|
||||
this.f = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
|
|
Loading…
Reference in a new issue