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

Select all and select inverse appear in the app bar #2493

Closed
davigonz opened this issue Mar 19, 2019 · 9 comments
Closed

Select all and select inverse appear in the app bar #2493

davigonz opened this issue Mar 19, 2019 · 9 comments

Comments

@davigonz
Copy link
Contributor

davigonz commented Mar 19, 2019

Actual behaviour

  • Select all and Select inverse options appear in the top of the file actions menu with no icon.

Expected behaviour

  • Select all and Select inverse options should not appear in the app bar but in the the app bar's overflow menu, after tapping the three dots icon.

Steps to reproduce

  1. Long press a file.
  2. Have a look at the top bar.

Can this problem be reproduced with the official owncloud server?
(url: https://demo.owncloud.org, user: test, password: test)

Environment data

Android version: 7

Device model: Nexus 6P

Stock or customized system: Stock

ownCloud app version: master branch

Some clues

This UI bug was introduced via #2442 when changing:

Screenshot 2019-03-19 at 10 47 24

PR

#2514

@davigonz davigonz added this to the 2.11.0 milestone Mar 19, 2019
@shashvat-kedia
Copy link
Contributor

@davigonz I will fix this.

@davigonz
Copy link
Contributor Author

I will fix this.

Sure, go ahead!

@shashvat-kedia
Copy link
Contributor

shashvat-kedia commented Mar 22, 2019

@davigonz I am unable to determine the reason why the "Select-all" and "Select inverse options are appearing in the top of the file actions menu as everything seems to be fine. One way to fix this would be to shift back to android:showAsAction from app:showAsAction should I do that?

@jesmrec jesmrec modified the milestones: 2.11.0, backlog Mar 26, 2019
@davigonz davigonz modified the milestones: backlog, 2.11.0 Mar 27, 2019
@deandreamatias
Copy link

deandreamatias commented Apr 1, 2019

I have tried to solve this problem but I have encountered a bug.
Apparently, there is an error in logic. When you press the "select all" option in the menu, it option appears again in the TopBar. From what I've seen, the ActionMode update and the mEnableSelectAll variable are not setting well.
I think this is the first step to fix this issue.

@davigonz
Copy link
Contributor Author

davigonz commented Apr 1, 2019

I am unable to determine the reason why the "Select-all" and "Select inverse options are appearing in the top of the file actions menu as everything seems to be fine. One way to fix this would be to shift back to android:showAsAction from app:showAsAction should I do that?

Yes, let's solve it by doing that.

@davigonz
Copy link
Contributor Author

davigonz commented Apr 1, 2019

I have tried to solve this problem but I have encountered a bug.
Apparently, there is an error in logic. When you press the "select all" option in the menu, it option appears again in the TopBar. From what I've seen, the ActionMode update and the mEnableSelectAll variable are not setting well.
I think this is the first step to fix this issue.

Thanks @deandreamatias for your report, I was able to solve this locally by replacing app:showAsAction with android:showAsAction so I guess that what you refer to is a different bug, could you open a new issue and give us more details?

@shashvat-kedia
Copy link
Contributor

@davigonz I have also been able to replicate this comment should I change it back to android:showAsAction?

@davigonz
Copy link
Contributor Author

davigonz commented Apr 9, 2019

Yes, try to use android:showAsAction, I answered you in #2493 (comment)

@jesmrec
Copy link
Collaborator

jesmrec commented Apr 10, 2019

Fixed!

@jesmrec jesmrec closed this as completed Apr 10, 2019
@jesmrec jesmrec removed the Sprint label May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants