Skip to content

Commit 3c94a83

Browse files
committed
chore_: rename to releaseOSMemory
1 parent 0115348 commit 3c94a83

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

android/app/src/main/java/im/status/ethereum/MainApplication.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class MainApplication : NavigationApplication() {
6565
override fun onLowMemory() {
6666
super.onLowMemory()
6767
Log.i("MainApplication", "onLowMemory called")
68-
StatusPackage.switchToLowMemoryMode()
68+
StatusPackage.releaseOSMemory()
6969
emitEvent(ComponentCallbacks2.TRIM_MEMORY_COMPLETE)
7070
}
7171

@@ -79,7 +79,7 @@ class MainApplication : NavigationApplication() {
7979
)) {
8080
return
8181
}
82-
StatusPackage.switchToLowMemoryMode()
82+
StatusPackage.releaseOSMemory()
8383
emitEvent(level)
8484
}
8585

modules/react-native-status/android/src/main/java/im/status/ethereum/module/StatusPackage.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ class StatusPackage(private val rootedDevice: Boolean) : ReactPackage {
1616
statusgoFunction = { Statusgo.imageServerTLSCert() }
1717
)
1818

19-
fun switchToLowMemoryMode() {
19+
fun releaseOSMemory() {
2020
// use pool to execute the request to avoid android.os.NetworkOnMainThreadException
2121
StatusThreadPoolExecutor.getInstance().execute {
2222
StatusBackendClient.executeStatusGoRequest(
23-
endpoint = "SwitchToLowMemoryMode",
23+
endpoint = "ReleaseOSMemory",
2424
requestBody = "",
25-
statusgoFunction = { Statusgo.switchToLowMemoryMode() }
25+
statusgoFunction = { Statusgo.releaseOSMemory() }
2626
)
2727
}
2828
}

0 commit comments

Comments
 (0)