use correct methods for context handling

This commit is contained in:
Markus M. May 2018-08-01 20:44:16 +02:00
parent 3306e14ca1
commit 2bc462aa13

View file

@ -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) {