File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
android/app/src/main/java/im/status/ethereum Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import im.status.ethereum.pushnotifications.PushNotificationPackage
24
24
import im.status.ethereum.StatusOkHttpClientFactory
25
25
import org.json.JSONObject
26
26
import android.content.ComponentCallbacks2
27
+ import android.util.Log
27
28
28
29
class MainApplication : NavigationApplication () {
29
30
@@ -57,12 +58,14 @@ class MainApplication : NavigationApplication() {
57
58
58
59
override fun onLowMemory () {
59
60
super .onLowMemory()
61
+ Log .i(" MainApplication" , " onLowMemory called" )
60
62
StatusPackage .switchToLowMemoryMode()
61
63
emitEvent(ComponentCallbacks2 .TRIM_MEMORY_COMPLETE )
62
64
}
63
65
64
66
override fun onTrimMemory (level : Int ) {
65
67
super .onTrimMemory(level)
68
+ Log .i(" MainApplication" , " onTrimMemory called with level: $level " )
66
69
if (level !in arrayOf(
67
70
ComponentCallbacks2 .TRIM_MEMORY_BACKGROUND ,
68
71
ComponentCallbacks2 .TRIM_MEMORY_MODERATE ,
You can’t perform that action at this time.
0 commit comments