Don't use line references in comments

This commit is contained in:
BuildTools 2023-07-02 12:23:36 +03:00
parent 4aec0d538a
commit 779cd9d2d8
2 changed files with 4 additions and 3 deletions

View File

@ -117,7 +117,7 @@ public abstract class ModVersionListFragment<T> extends Fragment implements Runn
getTaskProxy().detachListener();
setTaskProxy(null);
mExpandableListView.setEnabled(true);
// Read FabricInstallFragment line 132-137 to see why
// Read the comment in FabricInstallFragment.onDownloadFinished() to see how this works
getParentFragmentManager().popBackStack();
onDownloadFinished(context, downloadedFile);
});

View File

@ -22,8 +22,9 @@ public class ProfileTypeSelectFragment extends Fragment {
view.findViewById(R.id.vanilla_profile).setOnClickListener(v -> Tools.swapFragment(requireActivity(), ProfileEditorFragment.class,
ProfileEditorFragment.TAG, false, new Bundle(1)));
// NOTE: Special care needed! If you wll decide to add these to the back stack, please read FabricInstallFragment line 132-137
// and amend FabricInstallFragment line 138 and ModVersionListFragment line 121
// NOTE: Special care needed! If you wll decide to add these to the back stack, please read
// the comment in FabricInstallFragment.onDownloadFinished() and amend the code
// in FabricInstallFragment.onDownloadFinished() and ModVersionListFragment.onDownloadFinished()
view.findViewById(R.id.optifine_profile).setOnClickListener(v -> Tools.swapFragment(requireActivity(), OptiFineInstallFragment.class,
OptiFineInstallFragment.TAG, false, null));
view.findViewById(R.id.modded_profile_fabric).setOnClickListener((v)->