Chore[profile]: add button

This commit is contained in:
artdeell 2023-08-22 22:12:21 +03:00 committed by ArtDev
parent f1e88e2068
commit 37cf59e051
4 changed files with 11 additions and 3 deletions

View File

@ -606,9 +606,6 @@ public final class Tools {
// I WILL embrace layer violations because Android's concept of layers is STUPID
// We live in the same process anyway, why make it any more harder with this needless
// abstraction?
// Also, to @TorchDragon in r/AndroidDev discord: if Android is not for general computing,
// and all apps need so much babysitting, why did they put an SoC equivalent to
// my main PC in power?
// Add your Context-related rage here
ContextExecutor.execute(new ShowErrorActivity.RemoteErrorTask(e, rolledMessage));

View File

@ -31,5 +31,7 @@ public class ProfileTypeSelectFragment extends Fragment {
Tools.swapFragment(requireActivity(), FabricInstallFragment.class, FabricInstallFragment.TAG, false, null));
view.findViewById(R.id.modded_profile_forge).setOnClickListener((v)->
Tools.swapFragment(requireActivity(), ForgeInstallFragment.class, ForgeInstallFragment.TAG, false, null));
view.findViewById(R.id.modded_profile_modpack).setOnClickListener((v)->
Tools.swapFragment(requireActivity(), SearchModFragment.class, SearchModFragment.TAG, false, null));
}
}

View File

@ -103,6 +103,14 @@
app:layout_constraintTop_toBottomOf="@+id/modded_profile_fabric" />
<com.kdt.mcgui.MineButton
android:id="@+id/modded_profile_modpack"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/padding_large"
android:layout_marginTop="@dimen/padding_large"
android:text="@string/modpack_install_button" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline"
android:layout_width="wrap_content"

View File

@ -425,6 +425,7 @@
<string name="modpack_install_notification_data_not_available">Failed to download mod loader information</string>
<string name="modpack_install_modloader_download_failed">Failed to download the mod loader files</string>
<string name="modpack_install_download_failed">Failed to download modpack files</string>
<string name="modpack_install_button">Create modpack profile</string>
<string name="notif_error_occured">An error has occurred</string>
<string name="notif_error_occured_desc">Click to see more details</string>