Android Question white icon on lollipop

francobasal

New Member
Licensed User
Longtime 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!
 
Top