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

No animation -> no chat effect #5941

Merged
merged 5 commits into from May 9, 2022
Merged

No animation -> no chat effect #5941

merged 5 commits into from May 9, 2022

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented May 5, 2022

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

If the user does not want to see animation, no chat effect will be performed. Also no account creation celebration will e displayed.

Motivation and context

It will speed up the UI test, which have animation disabled.

It can also be useful to user with health condition (see #5557)

I tried to update the speed for Konfetti regarding the animation scale, but I think it has to be handled by the third party library. Same for the snowfall.

Screenshots / GIFs

Tests

  • Step 1
  • Step 2
  • Step ...

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@bmarty bmarty added the Z-NextRelease For issues and PRs which should be included in the NextRelease. label May 5, 2022
@bmarty bmarty requested review from a team, onurays and fedrunov and removed request for a team May 5, 2022 10:05
@@ -218,7 +218,7 @@ class PopupAlertManager @Inject constructor(
if (!alert.isLight) {
clearLightStatusBar()
}
val noAnimation = !animate || isAnimationDisabled(activity)
val noAnimation = !(animate && activity.isAnimationEnabled())
Copy link
Member Author

Choose a reason for hiding this comment

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

I've read it several times, but please double check this change :)

Copy link
Contributor

Choose a reason for hiding this comment

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

took me some time to proceed, but looks correct

@github-actions
Copy link

github-actions bot commented May 5, 2022

Unit Test Results

122 files  ±0  122 suites  ±0   2m 8s ⏱️ +10s
205 tests ±0  205 ✔️ ±0  0 💤 ±0  0 ±0 
690 runs  ±0  690 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 0b30c28. ± Comparison against base commit 83f8a8f.

Copy link
Contributor

@fedrunov fedrunov left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -218,7 +218,7 @@ class PopupAlertManager @Inject constructor(
if (!alert.isLight) {
clearLightStatusBar()
}
val noAnimation = !animate || isAnimationDisabled(activity)
val noAnimation = !(animate && activity.isAnimationEnabled())
Copy link
Contributor

Choose a reason for hiding this comment

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

took me some time to proceed, but looks correct

@bmarty bmarty removed the Z-NextRelease For issues and PRs which should be included in the NextRelease. label May 5, 2022
@bmarty
Copy link
Member Author

bmarty commented May 5, 2022

(the label next release was added by mistake)

Copy link
Contributor

@onurays onurays left a comment

Choose a reason for hiding this comment

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

LGTM!

@bmarty bmarty merged commit e35bb77 into develop May 9, 2022
@bmarty bmarty deleted the feature/bma/konfetti_speed branch May 9, 2022 15:05
@github-actions
Copy link

Matrix SDK

Integration Tests Results:

  • [org.matrix.android.sdk.session]
    = passed=16 failures=4 errors=0 skipped=3
  • [org.matrix.android.sdk.account]
    = passed=3 failures=0 errors=0 skipped=2
  • [org.matrix.android.sdk.internal]
    = passed=110 failures=0 errors=0 skipped=38
  • [org.matrix.android.sdk.ordering]
    = passed=16 failures=0 errors=0 skipped=0
  • [org.matrix.android.sdk.PermalinkParserTest]
    = passed=2 failures=0 errors=0 skipped=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants