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

Skip to content

Add ignore functionality for session refresh

Fahim M. Choudhury requested to merge 1844-add-ignore-functionality into main

Description

Added functionality to ignore the refresh session popup during an app session.

Screen record

1844-ignore-session-refresh

Technical details

Added back press handling for Android 13, Android 12, and lower. Implemented check for session refresh on app start.

Due to a change in Android 12 behavior (https://is.gd/7HzORm), the onCreate() and onDestroy() activity lifecycle callbacks will not be triggered anymore while using back navigation. Hence, onBackPressed() has to be overridden to detect if the app session is going to be closed by the user using back navigation.

In Android 13+, onBackPresses() will not be invoked. Hence, OnBackInvokedCallback is used to detect back navigation by the user.

Tests

Manual checks have been performed on Android 11, 12, 13 and 14 devices to check if the app maintains consistent behavior.

Issues

Issue link: https://gitlab.e.foundation/e/os/backlog/-/issues/1844

10 commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

Edited by Fahim M. Choudhury

Merge request reports

Loading