Android Question white icon on lollipop

francobasal

New Member
Licensed User
I need to use targetSdkVersion=21 (lollipop), but when i use it, the icon on notification bar became white.

I read why is happing, in the core of android ui:

B4X:
// android_frameworks_base/packages/SystemUI/src/com/android/systemui/
//   statusbar/BaseStatusBar.java

if (entry.targetSdk >= Build.VERSION_CODES.LOLLIPOP) {
    entry.icon.setColorFilter(mContext.getResources().getColor(android.R.color.white));
} else {
    entry.icon.setColorFilter(null);
}
¿Any solution for this? I need to put there the original icon, not the white version.
Thanks!
 

NJDude

Expert
Licensed User
After updating to L version 5.0.2 that's the behavior, not sure if it's a "feature" or a bug.
 
Top