Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Clicking on label doesn't work if you hold down too long #250

Closed
MalcolmEvershed opened this issue Apr 24, 2016 · 1 comment
Closed

Clicking on label doesn't work if you hold down too long #250

MalcolmEvershed opened this issue Apr 24, 2016 · 1 comment
Labels
Milestone

Comments

@MalcolmEvershed
Copy link

Steps to reproduce:

  1. Run the sample app.
  2. Open the drawer and switch to Menus.
  3. Tap the red floating action button at the lower-right.
  4. Tap Remove button and the button will be removed.
  5. Tap and hold on the label for Restore Button for a few seconds and then let go. Nothing will happen, which is unexpected.
  6. Do a quick tap on the label for Restore Button and the button will be restored.

The results of step 5 seems like a bug to me. I debugged this a little and it seems like View.onTouchEvent() is called with MotionEvent.ACTION_UP and it checks PFLAG_PREPRESSED or PFLAG_PRESSED and neither is set, so it doesn't do anything. Maybe there is a timer somewhere (maybe for long-press detection? I'm not sure.) that is clearing the flags.

Thanks.

@Clans Clans added the bug label Apr 25, 2016
@Clans Clans added this to the 1.6.4 milestone May 24, 2016
Clans pushed a commit that referenced this issue May 24, 2016
@Clans Clans closed this as completed May 24, 2016
@MalcolmEvershed
Copy link
Author

Thanks!

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

No branches or pull requests

2 participants