Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix app not showing out of time screen even though time is up. #5484

Conversation

Pururun
Copy link
Contributor

@Pururun Pururun commented Nov 22, 2023


This change is Reviewable

Copy link

linear bot commented Nov 22, 2023

DROID-493 App sometimes not redirect to the out-of-time screen

WhatsApp Image 2023-11-15 at 3.50.13 PM.jpeg

Steps for reproduce is not available but it seems if app get expiry update on account screen back button will redirect to connect screen instead of out of time screen

@Pururun Pururun added the Android Issues related to Android label Nov 22, 2023
@Pururun Pururun self-assigned this Nov 22, 2023
@Pururun Pururun force-pushed the app-sometimes-not-redirect-to-the-out-of-time-screen-droid-493 branch from 25f6fff to 6db6c00 Compare November 22, 2023 15:59
@Pururun Pururun changed the title Fix app not showing out of time screen if not connected Fix app not showing out of time screen in connect screen Nov 22, 2023
@Pururun Pururun changed the title Fix app not showing out of time screen in connect screen Fix app not showing out of time screen even though time is up. Nov 22, 2023
@Pururun Pururun force-pushed the app-sometimes-not-redirect-to-the-out-of-time-screen-droid-493 branch from 6db6c00 to 6dae80b Compare November 22, 2023 16:07
Copy link
Contributor

@Rawa Rawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 of 8 files at r1, 1 of 2 files at r2, all commit messages.
Reviewable status: 5 of 8 files reviewed, 1 unresolved discussion (waiting on @Pururun)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/TopBar.kt line 324 at r2 (raw file):

                                )
                            } else {
                                stringResource(id = R.string.expired)

Just reminder from daily to use the OutOfTime string resources as suggest by @albin-mullvad

@Pururun Pururun force-pushed the app-sometimes-not-redirect-to-the-out-of-time-screen-droid-493 branch from 6dae80b to 5ab9906 Compare November 27, 2023 10:05
Copy link
Contributor Author

@Pururun Pururun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 5 of 8 files reviewed, 1 unresolved discussion (waiting on @albin-mullvad)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/TopBar.kt line 324 at r2 (raw file):

Previously, Rawa (David Göransson) wrote…

Just reminder from daily to use the OutOfTime string resources as suggest by @albin-mullvad

Done.

Copy link
Contributor

@Rawa Rawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 3 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Collaborator

@albin-mullvad albin-mullvad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Pururun)

a discussion (no related file):
I'm a bit concerned about bringing this on the release branch due to it changing out we detect expiry/out-of-time scenario and how often we refresh it, so I would like to discuss it before we go ahead and merge it.



android/lib/resource/src/main/res/values/strings.xml line 246 at r2 (raw file):

    <string name="loading_connecting">Connecting...</string>
    <string name="loading_verifying">Verifying purchase...</string>
    <string name="expired">Expired</string>

We can probably use the "Out of time" string instead since this is just a fallback

Copy link
Contributor Author

@Pururun Pururun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @albin-mullvad)

a discussion (no related file):

Previously, albin-mullvad wrote…

I'm a bit concerned about bringing this on the release branch due to it changing out we detect expiry/out-of-time scenario and how often we refresh it, so I would like to discuss it before we go ahead and merge it.

Since this is as far as I can tell is behaviour that we have had in the app for quite some time, we could not include the fix.



android/lib/resource/src/main/res/values/strings.xml line 246 at r2 (raw file):

Previously, albin-mullvad wrote…

We can probably use the "Out of time" string instead since this is just a fallback

Yes that was removed, I think it is just being reviewable showing that it is still there?

@Pururun Pururun force-pushed the app-sometimes-not-redirect-to-the-out-of-time-screen-droid-493 branch from 5ab9906 to 2eaa01a Compare November 29, 2023 08:03
@Pururun
Copy link
Contributor Author

Pururun commented Dec 1, 2023

I am closing this one since the change to out of time behaviour will be added in: #5400

If we really want to change this behaviour before we merge that PR, we can open a new PR again from this branch.

@Pururun Pururun closed this Dec 1, 2023
@Pururun Pururun deleted the app-sometimes-not-redirect-to-the-out-of-time-screen-droid-493 branch January 26, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Issues related to Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants