How to change status bar color in themeable browser in android with ionic


#1

I am using themeable browser http://ionicframework.com/docs/native/themeable-browser/ for display url in my ionic application.

Default themeable browser take black color in status bar i have to change it i am trying below code for that but nothing happens.

Window window = cordova.getActivity().getWindow();

    window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);

    window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) 
    {
         window.setStatusBarColor(ContextCompat.getColor(cordova.getActivity(), android.R.color.holo_green_dark));
    }

I am changing this code in android file which is located here

https://github.com/initialxy/cordova-plugin-themeablebrowser/blob/master/src/android/ThemeableBrowser.java

Any help appreciate. Thanks.!