setStatusBarBackgroundColor use to use reflection so that the project didn't need to be compile with SDK level 21 or higher.
Per plugin's defined cordova-android requirement, in plugin.xml and package.json, the minimum supported SDK level is 22. Reflection should not be required anymore.
Also, we do not need to type in the hex values anymore on the following lines as SDK 22 is minimum and the WindowManager.LayoutParams is available.
Platforms affected
Android
Motivation and Context
refactor
setStatusBarBackgroundColor
Description
setStatusBarBackgroundColor
use to use reflection so that the project didn't need to be compile with SDK level 21 or higher.Per plugin's defined cordova-android requirement, in
plugin.xml
andpackage.json
, the minimum supported SDK level is 22. Reflection should not be required anymore.Also, we do not need to type in the hex values anymore on the following lines as SDK 22 is minimum and the
WindowManager.LayoutParams
is available.Testing
Build with AS
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)