Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad344aed authored by narinder Rana's avatar narinder Rana
Browse files

manage crash observed in only logs

parent 6893ead0
Loading
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ class LocaleChangedBroadcastReceiver : BroadcastReceiver() {

    override fun onReceive(context: Context, intent: Intent) {
        GlobalScope.launch {
           try{
               val authDataJson = dataStoreModule.getAuthDataSync()
               val authData = gson.fromJson(authDataJson, AuthData::class.java)
               authData.locale = context.resources.configuration.locales[0]
@@ -53,6 +54,10 @@ class LocaleChangedBroadcastReceiver : BroadcastReceiver() {
               withContext(Dispatchers.IO) {
                   cache.evictAll()
               }
           }catch (ex :Exception){
               ex.printStackTrace()
           }

        }
    }
}