List of usage examples for android.app Activity finishActivityFromChild
public void finishActivityFromChild(@NonNull Activity child, int requestCode)
From source file:de.damdi.fitness.activity.create_workout.DialogWorkoutOverviewFragment.java
/** * Finishes the Activities ExerciseTypeDetailActivity and * ExerciseTypeListActivity .//ww w. ja va 2 s .co m */ private void finishActivities(Activity activity) { if (activity instanceof ExerciseTypeDetailActivity) { // finish ExerciseTypeDetailActivity AND // ExerciseTypeListActivity activity.finishActivityFromChild(getActivity(), ExerciseTypeListActivity.RESULT_WORKOUT); activity.finish(); } else { // finish ExerciseTypeListActivity activity.finish(); } }