voxels: fix ToastUsage/ExtraTranslation lint
- Commit
52ba34899cd0f7d7ace83e0eedda6e43786fc569- Author
- vayun-mathur <[email protected]>
- When
- 2026-08-16 00:23 UTC (3 months ago)
- Parents
d4afd1a
Diff
games/voxels/src/main/java/com/vayunmathur/games/voxels/platform/MenuActivity.kt
diff --git a/games/voxels/src/main/java/com/vayunmathur/games/voxels/platform/MenuActivity.kt b/games/voxels/src/main/java/com/vayunmathur/games/voxels/platform/MenuActivity.ktindex 0a2313c198..5487cfb0d3 100644--- a/games/voxels/src/main/java/com/vayunmathur/games/voxels/platform/MenuActivity.kt+++ b/games/voxels/src/main/java/com/vayunmathur/games/voxels/platform/MenuActivity.kt@@ -7,7 +7,6 @@ import android.content.ClipboardManager import android.content.Context import android.content.Intent import android.os.Bundle-import android.widget.Toast import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge@@ -27,6 +26,7 @@ import com.vayunmathur.games.voxels.ui.ShareOnlineDialog import com.vayunmathur.games.voxels.ui.WorldCreatorScreen import com.vayunmathur.library.ui.DynamicTheme import com.vayunmathur.library.ui.Surface+import com.vayunmathur.library.util.AppMessages import com.vayunmathur.library.util.rememberIsOnline import com.vayunmathur.games.voxels.network.VoxelsRoles import com.vayunmathur.games.voxels.network.VoxelsSync@@ -268,7 +268,7 @@ class MenuActivity : ComponentActivity() { } } - private fun toast(msg: String) = Toast.makeText(this, msg, Toast.LENGTH_SHORT).show()+ private fun toast(msg: String) = AppMessages.show(msg) private fun copyToClipboard(text: String) { if (text.isEmpty()) return
games/voxels/src/main/res/values-et/strings.xml
diff --git a/games/voxels/src/main/res/values-et/strings.xml b/games/voxels/src/main/res/values-et/strings.xmlindex bcfde64dd7..c890f8e49d 100644--- a/games/voxels/src/main/res/values-et/strings.xml+++ b/games/voxels/src/main/res/values-et/strings.xml@@ -4,7 +4,6 @@ <string name="resume">Jätka</string> <string name="create_new_world">Loo usu maailm</string> <string name="create_world">Loo maailm</string>- <string name="products">Tooted</string> <string name="close">Sulge</string> <string name="rust_lib_missing_vulkan_unavailable">Rusti teek on puudu - Vulkan pole kasutatav</string> <string name="save_quit_to_menu">Salvesta ja välju menüüsse</string>