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

Commit 5fdf8a43 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

chore: try to disable flags

parent 152b6353
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -51,9 +51,12 @@ class ReLoginWithOidcActivity : AppCompatActivity() {

            if (success) {
                Logger.log.info("Vincent: Account removed. Now will sign in again with OIDC")

                //todo: open Login activity without android AccountManager
                loginAccount(eAccountType)
            } else {
                Logger.log.info("failed to remove account: $accountName ")
                //todo call a finish
            }
        }

@@ -90,7 +93,9 @@ class ReLoginWithOidcActivity : AppCompatActivity() {
            )
        } catch (exception: Exception) {
            Logger.log.warning("${exception.javaClass}: can't add account: ${exception.message}")
            //todo call finish
        }

    }

    private fun getIntentFromFuture(future: AliasFuture): Intent? {
+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)
        }