Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Increase screen brightness to 100% when opening QR-codes #4606

Closed
rkw95 opened this issue Dec 22, 2021 · 19 comments · Fixed by #4624
Closed

Increase screen brightness to 100% when opening QR-codes #4606

rkw95 opened this issue Dec 22, 2021 · 19 comments · Fixed by #4624
Assignees
Labels
enhancement Improvement of an existing feature eu dcc Fix 2.16 Fix is planned for 2.16 mirrored-to-jira This item is also tracked internally in JIRA

Comments

@rkw95
Copy link

rkw95 commented Dec 22, 2021

See corona-warn-app/cwa-wishlist#571, as I could not transfer the issue from the wishlist repo to this repo.


Internal Tracking ID: EXPOSUREAPP-8224

@rkw95 rkw95 added the enhancement Improvement of an existing feature label Dec 22, 2021
@Ein-Tim
Copy link
Contributor

Ein-Tim commented Dec 22, 2021

Is a separate issue for this really necessary?

@rkw95
Copy link
Author

rkw95 commented Dec 22, 2021

I wanted to implement this feature. In order to reference it easier inside this repo, I created this issue.

@rkw95 rkw95 changed the title Increase screen brightness to 100% when opening QR-codes Increase screen brightness to 100% when opening QR-codes Dec 22, 2021
@rkw95
Copy link
Author

rkw95 commented Dec 22, 2021

Can someone with the necessary permissions assign me this issue so I can propose a solution?

@dsarkar
Copy link
Member

dsarkar commented Dec 22, 2021

Hi @rkw95, thanks for participating here. Are you offering code or even a PR for an implementation on Android? Just to make you aware: Usually in this project parity between iOS and Android is maintained, i.e. there might be a delay in releasing this feature until a corresponding feature for iOS has been prepared.


Corona-Warn-App Open Source Team

@dsarkar dsarkar added the mirrored-to-jira This item is also tracked internally in JIRA label Dec 22, 2021
@dsarkar dsarkar added the eu dcc label Dec 22, 2021
@rkw95
Copy link
Author

rkw95 commented Dec 22, 2021

I'm very new to Android / Kotlin programming, (I have other coding experience), but I got it working on my personal phone. So I wanted to share my solution. I do not know if my implementation works also for iOS.

@dsarkar
Copy link
Member

dsarkar commented Dec 22, 2021

@rkw95 ok, thanks. I suggest to share your code or PR here in this repository, and then the dev team might have a look at it.

@rkw95
Copy link
Author

rkw95 commented Dec 22, 2021

@dsarkar how can I push to the repo? I have a local git branch named feature/increase_scanablity_issue_4606 with my proposed solution but I don't have the permission to push it.

@dsarkar
Copy link
Member

dsarkar commented Dec 22, 2021

@rkw95

I understand you have a fork of the cwa-app-android repository.

Go to
https://github.com/YOUR_FORK/cwa-app-android/branches

Next to your new feature branch press "New pull request"

Then choose
base repository: /corona-warn-app/cwa-app-android
base: branch 2.16.x or later

head repository: /YOUR_FORK/cwa-app-android
compare: your feature branch

@MikeMcC399
Copy link
Contributor

@rkw95
I can see that you have a fork https://github.com/rkw95/cwa-app-android , however there is no branch feature/increase_scanablity_issue_4606 in that fork.

If you have a standard setup you would need to execute
git push origin feature/increase_scanablity_issue_4606
from the command line.

There is a typo in your branch name. You might want to rename the branch before you push it.
scanablity => scanability

@rkw95
Copy link
Author

rkw95 commented Dec 22, 2021

@dsarkar Thanks for your help!

@MikeMcC399 Thanks for pointing out the typo. The branch was still local, I now pushed it and I will create a merge request.

@MikeMcC399
Copy link
Contributor

@rkw95
You will need to rebase on 2.16.x
git rebase release/2.16.x feature/increase_scanability_issue_4606
then
git push origin feature/increase_scanability_issue_4606 --force
otherwise your pull request will not be right.

@rkw95
Copy link
Author

rkw95 commented Dec 22, 2021

Ok, I rebased and created a pull request. :)

@dsarkar
Copy link
Member

dsarkar commented Dec 23, 2021

Good morning @MikeMcC399, Thanks for assisting here!
Good morning @rkw95, Thanks for the PR!

@dsarkar dsarkar added the Fix 2.16 Fix is planned for 2.16 label Dec 30, 2021
@MikeMcC399
Copy link
Contributor

@rkw95

Congratulations on getting your PR accepted! It was rolled out with version 2.16.

I tested it on CWA Android 2.16.2 and I confirmed it still works in 2.17.2.

  1. Depending on device, set brightness to 1/4 full and disable autobrightness
  2. Scan 2/2 vaccination certificate
  3. From Status screen, tap on Certificates
  4. Tap on QR code
  5. Scroll down to Vaccination Certificate and tap on it
  6. Tap on QR code
  7. Confirm that full-screen QR code is shown and that the display is bright

Would you like to close this issue now that it is resolved and rolled out?

@eltos
Copy link

eltos commented Feb 13, 2022

Hi everyone,
while #4624 is really nice, I think this can be improved even further for everyday usage of the app:

Usually people will just go to the certificate tab and present the QR codes already displayed there when asked for. If the brightness is insufficient, I suspect people will click through steps 4-7 (if they are even aware of this possibility), and instead just increase the brightness from the notification bar (which is faster and much more intuitive).

Therefore, I propose to add a toggle action item to the toolbar in the certificates tab (as in the screenshot below). This will allow to quickly increase the screen brightness with only a single tap if required. This has several advantages:

  • Intuitive to the user
  • Fast (which is especially important to reduce queuing at entrance controls)
  • Not disturbing, since it's not enabled by default

If you want, I'd volunteer to propose an implementation and submit a PR on the matter.

Screenshot

20220213_121852

eltos added a commit to eltos/cwa-app-android that referenced this issue Feb 14, 2022
@MikeMcC399
Copy link
Contributor

@rkw95
Since the original issue has been resolved, it probably makes sense to close this one.

For clarity, the suggestion from @eltos in #4606 (comment) would more easily be tracked in a new issue.

@eltos
Copy link

eltos commented Mar 16, 2022

For clarity, the suggestion from @eltos in #4606 (comment) would more easily be tracked in a new issue.

I agree, please see corona-warn-app/cwa-wishlist#857 @MikeMcC399

@MikeMcC399
Copy link
Contributor

@rkw95 / @dsarkar

Will either of you be closing this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Improvement of an existing feature eu dcc Fix 2.16 Fix is planned for 2.16 mirrored-to-jira This item is also tracked internally in JIRA
Projects
None yet
6 participants