Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8f3aa5f6 authored by Chao Zhang's avatar Chao Zhang Committed by Gerrit - the friendly Code Review server
Browse files

Gallery2: enhance performance of update supported operation.

getSelectedMediaObjects() in updateSupportedOperation() is low performance
if there are lots of photos, so menu options will not in correct state
immediately, then crash occurred if click menu option.

Use mSelectionManager.getSelectedCount() before getSelectedMediaObjects()
to disable menu options and share items if need.

Change-Id: I937a219ed294151c464f1d7b6ba2e526eef00c82
CRs-Fixed: 985315
parent 7f8e26df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment