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

Add unlisted visibility on Long click #189

Closed
wants to merge 2 commits into from

Conversation

tribela
Copy link

@tribela tribela commented May 25, 2022

A lot of people want to use "unlisted" visibility. But @Gargron said that

This option has been omitted on purpose since it overlaps with public in almost all ways. We keep the dropdown simple, with all other options being very intuitive to understand.

So this PR keeps that dropdown menu simple, but few changes.

  • Show unlisted visibility only when unlisted is selected (hidden by default) (eg, replying to unlisted post)
  • Change visibility setting to "unlisted" when long pressed privacy menu (Like hidden feature)
screen-20220525-172024.mp4

Copy link

@3ter 3ter left a comment

Choose a reason for hiding this comment

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

I like the idea of adding this feature without cluttering/complicating the interface. Addressing the small inconsistencies (perhaps together with the author of #103 ?) and I recommend merging it.

mastodon/src/main/res/menu/compose_visibility.xml Outdated Show resolved Hide resolved
@@ -1056,6 +1064,12 @@ public boolean onMenuItemClick(MenuItem item){
menu.show();
}

private boolean onVisibilityLongClick(View v) {
Copy link

Choose a reason for hiding this comment

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

Why isn't this void as the onVisibilityClick()?

Copy link
Author

Choose a reason for hiding this comment

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

LongClickListener should return boolean value. It is handler

Copy link

Choose a reason for hiding this comment

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

Yeah, thanks for the explanation. I didn't know that OnClickListener and OnLongClickListener were different in this regard.
https://developer.android.com/reference/android/view/View.OnClickListener
https://developer.android.com/reference/android/view/View.OnLongClickListener

@grishka grishka closed this in f888091 Mar 18, 2024
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.

2 participants