Compatibility and ROM support for StatusBarCompat
masterStatusBarCompat provides compatibility for various Android versions and manufacturer ROMs:
ROM Support
- MIUI: Uses Xiaomi's specific APIs.
- Flyme: Uses Meizu's APIs and includes extra logic to prevent incompatibility.
- EMUI: For EMUI 5.0 and above, it uses the standard API; for EMUI 3.1 and below, it uses the Android 4.4.2 approach.
Limitations and Warnings
- Dark Icons: Only supported on Android 6.0+, MIUI, and Flyme. Other devices below 6.0 cannot set dark icons.
- Visibility Warning: Setting the status bar to white or near-white colors may make time and icons invisible on some devices (e.g., Lenovo TAB S8-50F, Lenovo A936) because these devices lack the API to switch icon colors to dark. It is recommended to avoid very light colors unless using a supported ROM like MIUI or Flyme.