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

Replace "open settings" button by "disable" action in RageShake dialog if there is no session #5649

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

Florian14
Copy link
Contributor

@Florian14 Florian14 commented Mar 28, 2022

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

The "settings" button is replaced by a "disable" button when there is no session. Clicking on this button will disable the rage shake feature until the user manually reactive it by opening the application settings from a new session.

Motivation and context

Fix #4445

Screenshots / GIFs

image

Tests

Tested by triggering the rageshake dialog in both states (connected & disconnected).

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@Florian14 Florian14 added the PR-Small PR with less than 20 updated lines label Mar 28, 2022
@Florian14 Florian14 requested review from a team and ouchadam and removed request for a team March 28, 2022 12:40
@Florian14
Copy link
Contributor Author

I removed the button to fix a crash but I didn't read the original issue which explains that the setting might stay available by handling the no session state in the settings. Let me know if you prefer to keep the button and go on this way.

@github-actions
Copy link

github-actions bot commented Mar 28, 2022

Unit Test Results

110 files  ±0  110 suites  ±0   1m 16s ⏱️ -4s
195 tests ±0  195 ✔️ ±0  0 💤 ±0  0 ±0 
650 runs  ±0  650 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 4d37aa2. ± Comparison against base commit 27b727e.

♻️ This comment has been updated with latest results.

@ouchadam
Copy link
Contributor

is it possible to send a bug report whilst signed out? If not, maybe we could avoid showing the dialog completely?

@bmarty
Copy link
Member

bmarty commented Mar 29, 2022

is it possible to send a bug report whilst signed out? If not, maybe we could avoid showing the dialog completely?

yes, it is possible, and it works.

@bmarty
Copy link
Member

bmarty commented Mar 29, 2022

My concern is that it will not be possible to disable rageshake if there is no session, which is the state when a user has just installed the app.
We have seen in the past that sometime the acceleration sensor can be broken and the rageshake dialog appears a lot, which can be really frustrating for the user.

Can we replace the "settings" button by "disable" when there is no session? To let the user be able to disable rageshake detection and be able to create the session.

@Florian14 Florian14 force-pushed the hotfix/fre/rageshake_no_session branch from 6a05d6e to 4d37aa2 Compare April 1, 2022 13:47
@Florian14
Copy link
Contributor Author

@bmarty I updated the PR with your suggestion, let me know if it is ok for you

@Florian14 Florian14 requested a review from bmarty April 1, 2022 15:06
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

That's perfect, thanks for the update!

@Florian14 Florian14 changed the title Hide settings button from rageshake dialog is there is no session Replace "open settings" button by "disable" action in RageShake dialog if there is no session Apr 1, 2022
@Florian14 Florian14 merged commit 45eb3bc into develop Apr 1, 2022
@Florian14 Florian14 deleted the hotfix/fre/rageshake_no_session branch April 1, 2022 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-Small PR with less than 20 updated lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opening setting from rageshake dialog crash if there is no session
3 participants