diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 053bf5b3..f944aad0 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -13,7 +13,7 @@ diff --git a/app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt b/app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt index 0e5de8f1..62cf1e73 100644 --- a/app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt +++ b/app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt @@ -488,12 +488,6 @@ class MainActivity : AppCompatActivity(R.layout.activity_main), enableMultisample = preferenceManager[PreferenceManager.PredefinedKey.MSAA] == "true" enableHiDPI = preferenceManager[PreferenceManager.PredefinedKey.FullDPI] != "false" // default on - // Load core library - if (!celestiaLibraryLoaded) { - System.loadLibrary("celestia") - celestiaLibraryLoaded = true - } - AppStatusReporter.shared().updateState(AppStatusReporter.State.EXTERNAL_LOADING_FINISHED) } @@ -1651,6 +1645,7 @@ class MainActivity : AppCompatActivity(R.layout.activity_main), init { System.loadLibrary("nativecrashhandler") + System.loadLibrary("celestia") } } } diff --git a/app/src/main/java/space/celestia/mobilecelestia/utils/String.kt b/app/src/main/java/space/celestia/mobilecelestia/utils/String.kt index b00b06f5..e5cf2679 100644 --- a/app/src/main/java/space/celestia/mobilecelestia/utils/String.kt +++ b/app/src/main/java/space/celestia/mobilecelestia/utils/String.kt @@ -13,11 +13,7 @@ package space.celestia.mobilecelestia.utils import space.celestia.mobilecelestia.core.CelestiaAppCore -var celestiaLibraryLoaded = false - @Suppress("FunctionName") fun CelestiaString(key: String, @Suppress("UNUSED_PARAMETER") comment: String): String { - if (!celestiaLibraryLoaded) - return key return CelestiaAppCore.getLocalizedString(key) } \ No newline at end of file