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

Commit 77c91b65 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

fix(account-events): forward ACCOUNT_REMOVED extras to listeners

parent e7f31e8f
Loading
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -80,11 +80,11 @@ object AccountHelper {
        context.sendBroadcast(intent, ACCOUNT_EVENTS_PERMISSION)
    }

    fun notifyAccountRemoved(context: Context, intent: Intent) {
        val intent = Intent(ACTION_ACCOUNT_REMOVED)
        intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES)
        intent.putExtras(intent)
        context.sendBroadcast(intent, ACCOUNT_EVENTS_PERMISSION)
    fun notifyAccountRemoved(context: Context, sourceIntent: Intent) {
        val broadcastIntent = Intent(ACTION_ACCOUNT_REMOVED)
        broadcastIntent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES)
        broadcastIntent.putExtras(sourceIntent)
        context.sendBroadcast(broadcastIntent, ACCOUNT_EVENTS_PERMISSION)
    }

    fun scheduleSyncWithDelay(context: Context) {