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

Use another method to get ImageView in NavBar #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zst123
Copy link
Contributor

@zst123 zst123 commented Mar 23, 2014

All written in the extended commit message.
Should also solve this issue #16

Like I said in this previous issue, #13 , this will be slower (about the same speed as findViewById), thus I added another ArrayList to cache the views. After caching the views, it shouldn't impact performance.

Remove calling “getXXXButton” which may be removed in some ROM’s
(e.g. CyanogenMod)
& also because we catch the NoSuchMethodError and use
“findViewWithTag”, it may be slow

Instead, in this method, we do a loop to search for ImageView’s and
caches them in an ArrayList.
This will increase compatibility and also tint other
icons that we have not covered
(eg. When you add “Search” button in custom ROM’s, it was not tinted,
but this method should tint it too)
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.

1 participant