File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
android/app/src/main/java/im/status/ethereum
modules/react-native-status/android/src/main/java/im/status/ethereum/module Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments