mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 15:48:26 -04:00
Chore[profile]: add button
This commit is contained in:
parent
f1e88e2068
commit
37cf59e051
@ -606,9 +606,6 @@ public final class Tools {
|
|||||||
// I WILL embrace layer violations because Android's concept of layers is STUPID
|
// 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
|
// We live in the same process anyway, why make it any more harder with this needless
|
||||||
// abstraction?
|
// 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
|
// Add your Context-related rage here
|
||||||
ContextExecutor.execute(new ShowErrorActivity.RemoteErrorTask(e, rolledMessage));
|
ContextExecutor.execute(new ShowErrorActivity.RemoteErrorTask(e, rolledMessage));
|
||||||
|
@ -31,5 +31,7 @@ public class ProfileTypeSelectFragment extends Fragment {
|
|||||||
Tools.swapFragment(requireActivity(), FabricInstallFragment.class, FabricInstallFragment.TAG, false, null));
|
Tools.swapFragment(requireActivity(), FabricInstallFragment.class, FabricInstallFragment.TAG, false, null));
|
||||||
view.findViewById(R.id.modded_profile_forge).setOnClickListener((v)->
|
view.findViewById(R.id.modded_profile_forge).setOnClickListener((v)->
|
||||||
Tools.swapFragment(requireActivity(), ForgeInstallFragment.class, ForgeInstallFragment.TAG, false, null));
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -103,6 +103,14 @@
|
|||||||
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/modded_profile_fabric" />
|
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
|
<androidx.constraintlayout.widget.Guideline
|
||||||
android:id="@+id/guideline"
|
android:id="@+id/guideline"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -425,6 +425,7 @@
|
|||||||
<string name="modpack_install_notification_data_not_available">Failed to download mod loader information</string>
|
<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_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_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">An error has occurred</string>
|
||||||
<string name="notif_error_occured_desc">Click to see more details</string>
|
<string name="notif_error_occured_desc">Click to see more details</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user