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() {
65
65
override fun onLowMemory () {
66
66
super .onLowMemory()
67
67
Log .i(" MainApplication" , " onLowMemory called" )
68
- StatusPackage .switchToLowMemoryMode ()
68
+ StatusPackage .releaseOSMemory ()
69
69
emitEvent(ComponentCallbacks2 .TRIM_MEMORY_COMPLETE )
70
70
}
71
71
@@ -79,7 +79,7 @@ class MainApplication : NavigationApplication() {
79
79
)) {
80
80
return
81
81
}
82
- StatusPackage .switchToLowMemoryMode ()
82
+ StatusPackage .releaseOSMemory ()
83
83
emitEvent(level)
84
84
}
85
85
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ class StatusPackage(private val rootedDevice: Boolean) : ReactPackage {
16
16
statusgoFunction = { Statusgo .imageServerTLSCert() }
17
17
)
18
18
19
- fun switchToLowMemoryMode () {
19
+ fun releaseOSMemory () {
20
20
// use pool to execute the request to avoid android.os.NetworkOnMainThreadException
21
21
StatusThreadPoolExecutor .getInstance().execute {
22
22
StatusBackendClient .executeStatusGoRequest(
23
- endpoint = " SwitchToLowMemoryMode " ,
23
+ endpoint = " ReleaseOSMemory " ,
24
24
requestBody = " " ,
25
- statusgoFunction = { Statusgo .switchToLowMemoryMode () }
25
+ statusgoFunction = { Statusgo .releaseOSMemory () }
26
26
)
27
27
}
28
28
}
You can’t perform that action at this time.
0 commit comments