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

Make permission item fully touchable #16535

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gayatriii0803
Copy link
Contributor

@gayatriii0803 gayatriii0803 commented Jun 3, 2024

Purpose / Description

In PermissionActivity, the permission item is not fully touchable, unlike in the settings.

Approach

setOnClickListener on root layout.

How Has This Been Tested?

WhatsApp.Video.2024-06-07.at.20.38.22_93f151fb.mp4

Checklist

Please, go through these checks before submitting the PR.

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

@criticalAY
Copy link
Contributor

criticalAY commented Jun 3, 2024

If you are setting the onClick listener to the root layout, then it would be best to remove the redundant code from the switch listener ? I might be wrong but if the layouts can be merged then it can only be set to the parent layout

@ShridharGoel
Copy link
Member

Can you add a video? Also, did you test if the switch is unchecked when declined?

@gayatriii0803
Copy link
Contributor Author

did you test if the switch is unchecked when declined?

Yes

Copy link
Member

@BrayanDSO BrayanDSO left a comment

Choose a reason for hiding this comment

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

If the whole element is going to be a touch area, it needs some kind of visual feedback, like a Setting does.

@BrayanDSO BrayanDSO added the Needs Author Reply Waiting for a reply from the original author label Jun 7, 2024
Copy link
Contributor

@criticalAY criticalAY left a comment

Choose a reason for hiding this comment

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

As I said earlier the views need to be merged, right now the switch if tapped does nothing, the linear layout takes to the permission screen but the switch
Here the view are independent:
image

@gayatriii0803
Copy link
Contributor Author

@criticalAY I don't understand will you please explain what actually i have to do.

@criticalAY
Copy link
Contributor

Tap the switch, nothing happens. It will work only if you tap the layout i.e. the switch/layout should both be tappable and lead to same action

This comment was marked as outdated.

@github-actions github-actions bot added the Stale label Jun 25, 2024
@github-actions github-actions bot closed this Jul 2, 2024
@gayatriii0803
Copy link
Contributor Author

I request maintainers to open this PR and review

@voczi voczi added Needs Review and removed Needs Author Reply Waiting for a reply from the original author Stale labels Jul 10, 2024
@voczi voczi reopened this Jul 10, 2024
@criticalAY
Copy link
Contributor

Comments need to be resolved

@criticalAY criticalAY added Needs Author Reply Waiting for a reply from the original author and removed Needs Review labels Jul 10, 2024
@gayatriii0803
Copy link
Contributor Author

@criticalAY Comment already resolve kindly check once again.

@david-allison
Copy link
Member

@criticalAY

Copy link
Contributor

@criticalAY criticalAY left a comment

Choose a reason for hiding this comment

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

Works as expected! apologies for the wrong label

@criticalAY criticalAY removed the Needs Author Reply Waiting for a reply from the original author label Aug 3, 2024
@BrayanDSO
Copy link
Member

Repeating myself:

If the whole element is going to be a touch area, it needs some kind of visual feedback, like a Setting does.

@BrayanDSO BrayanDSO added the Needs Author Reply Waiting for a reply from the original author label Aug 26, 2024

This comment was marked as outdated.

@github-actions github-actions bot added the Stale label Sep 10, 2024
@github-actions github-actions bot closed this Sep 17, 2024
@gayatriii0803
Copy link
Contributor Author

Please reopen this PR

@SanjaySargam SanjaySargam reopened this Sep 26, 2024
@github-actions github-actions bot removed the Stale label Sep 26, 2024
@david-allison david-allison marked this pull request as draft September 26, 2024 21:05
@gayatriii0803
Copy link
Contributor Author

gayatriii0803 commented Sep 27, 2024

it needs some kind of visual feedback, like a Setting does

@BrayanDSO What do you mean by visual feedback? I don't understand. Will you please explain again?

@BrayanDSO
Copy link
Member

When you press a setting, there's a gray animation that flows like a wave that acts as feedback. So, something like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Author Reply Waiting for a reply from the original author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants