From 3c528ca4908a20b89e449e261dc0f0faa59af81b Mon Sep 17 00:00:00 2001 From: "eric.marchand" Date: Sun, 4 Feb 2024 17:49:05 +0100 Subject: [PATCH] Pass context to ToastMessage for futur localizations of http code --- .../com/qmobile/qmobileui/activity/mainactivity/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/qmobileui/src/main/java/com/qmobile/qmobileui/activity/mainactivity/MainActivity.kt b/qmobileui/src/main/java/com/qmobile/qmobileui/activity/mainactivity/MainActivity.kt index ef815341..116cc96a 100644 --- a/qmobileui/src/main/java/com/qmobile/qmobileui/activity/mainactivity/MainActivity.kt +++ b/qmobileui/src/main/java/com/qmobile/qmobileui/activity/mainactivity/MainActivity.kt @@ -155,6 +155,7 @@ class MainActivity : } override fun onCreate(savedInstanceState: Bundle?) { installSplashScreen() + ToastMessage.context = getApplicationContext() super.onCreate(savedInstanceState) signalHandler = SignalHandler(this).apply {