Skip to content

First Run Activity Not Launching #13536

@alperozturk96

Description

@alperozturk96

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. Have fresh install
  2. Open app

Expected behaviour

FirstRunActivity must appears

Actual behaviour

AuthenticationActivity appears instead FirstRunActivity

Android version

14

Device brand and model

Android Emulator

Stock or custom OS?

Stock

Nextcloud android app version

3.30.0

Nextcloud server version

29.0.4

Additional information

UserAccountManagerImpl.startAccountCreation starts AuthenticationActivity

OnboardServiceImpl.launchFirstRunIfNeeded starts FirstRunActivity if condition matches (firstRun condition was wrong I fixed but still AuthenticationActivity launched)

All these activities extends from BaseActivity and BaseActivity contains sessionMixin logic in onCreate which cause infinite loop to prevent that enableAccountHandling boolean variable used but still causing multiple activity launches and inconstancy for navigation.

This execution flow extremely error prone and buggy. Multiple place responsible for configuring the screen order.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions