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

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

fix: update manifest to avoid ReLoginWithOidcActivity to be in recent activities

parent 28655c60
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -103,9 +103,13 @@
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:ignore="UnusedAttribute">

        <activity
            android:name=".ReLoginWithOidcActivity"
            android:taskAffinity=""
            android:excludeFromRecents="true"
            android:exported="false" />

        <!-- required for Hilt/WorkManager integration -->
        <provider
            android:name="androidx.startup.InitializationProvider"
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ class BootCompletedReceiver: BroadcastReceiver() {

    private fun generateLogoutIntent(accountName: String, context: Context): PendingIntent {
        val reLoginIntent = Intent(context, ReLoginWithOidcActivity::class.java).apply {
            //flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
            flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
            putExtra(AccountManager.KEY_ACCOUNT_NAME, accountName)
        }