You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A fragment representing a single Task detail screen. This fragment is either contained in a {@link TaskListActivity} in two-pane mode (on tablets) or in a
@@ -131,6 +139,8 @@ public class ViewTaskFragment extends SupportFragment
131
139
*/
132
140
privateTaskViewmDetailView;
133
141
142
+
privateDisposablemDisposable;
143
+
134
144
privateintmListColor;
135
145
privateintmOldStatus = -1;
136
146
privatebooleanmPinned = false;
@@ -208,14 +218,6 @@ public static ViewTaskFragment newInstance(Uri uri)
208
218
}
209
219
210
220
211
-
/**
212
-
* Mandatory empty constructor for the fragment manager to instantiate the fragment (e.g. upon screen orientation changes).
213
-
*/
214
-
publicViewTaskFragment()
215
-
{
216
-
}
217
-
218
-
219
221
@Override
220
222
publicvoidonCreate(BundlesavedInstanceState)
221
223
{
@@ -266,6 +268,7 @@ public void onDestroyView()
266
268
mDetailView.setValues(null);
267
269
}
268
270
271
+
mDisposable.dispose();
269
272
}
270
273
271
274
@@ -400,8 +403,8 @@ public void loadUri(Uri uri)
400
403
401
404
if ((oldUri == null) != (uri == null))
402
405
{
403
-
/*
404
-
* getActivity().invalidateOptionsMenu() doesn't work in Android 2.x so use the compat lib
406
+
/*
407
+
* getActivity().invalidateOptionsMenu() doesn't work in Android 2.x so use the compat lib
0 commit comments