ricardoalcocer / actionbarextras

Titanium Android Native Module that exposes ActionBar features not exposed by the Titanium SDK
MIT License
149 stars 60 forks source link

setStatusbarColor() #96

Closed AppWerft closed 8 years ago

AppWerft commented 8 years ago

only works on newest Android? compiled with 5.1.0.GA I see the colored bar only on my NEXUS5, other smartphones shows white on black (CAT,NEXUS7, NEXUS9,OnePlus)

manumaticx commented 8 years ago

It should work for Lollipop (5.0) and higher. But as this should be compatible with AppCompat, we might can remove this check. I'll test this soon.

AppWerft commented 8 years ago

Under <5 the bar color keeps black.

manumaticx commented 8 years ago

It's because of this if-clause - probably because it crashes on Version <5

manumaticx commented 8 years ago

setStatusBarColor was added in API 21 (Lollipop) so this Check is legit