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

Commit ed9ef60d authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

fix: replace PendingIntent.gtActivity by getservice

parent 705ad5c8
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -72,11 +72,9 @@ class BootCompletedReceiver: BroadcastReceiver() {
    }

    private fun generateReLoginIntent(context: Context): PendingIntent {
        val reLoginIntent = Intent(context, ReLoginWithOidcService::class.java).apply {
            flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
        }
        val reLoginIntent = Intent(context, ReLoginWithOidcService::class.java)

        return  PendingIntent.getActivity(context,
        return  PendingIntent.getService(context,
            0,
            reLoginIntent,
            PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)