ollm commented on issue #1967:
URL: 
https://github.com/apache/cordova-android/issues/1967#issuecomment-5078000696

   It seems to work well, although there is a problem, does not work together 
with the plugin 
[`cordova-plugin-navigationbar`](https://github.com/ollm/cordova-plugin-navigationbar).
 I use this plugin to change the button color when gesture navigation is not 
enabled, since in this mode the color is not detected automatically as it is in 
gesture navigation.
   
   <img width="596" height="91" alt="Image" 
src="https://github.com/user-attachments/assets/1622e36c-37be-441d-b7ce-9f58f7f601d8";
 />
   
   <img width="596" height="91" alt="Image" 
src="https://github.com/user-attachments/assets/243f5344-2caa-4dab-909c-86d873d6fe11";
 />
   
   Could this also be included as an internal plugin in cordova-android?
   
   This is roughly how it's implemented in the plugin:
   
   
https://github.com/ollm/cordova-plugin-navigationbar/blob/3f19380d65b824da4cb982143f090a7b1f849d09/src/android/NavigationBar.java#L283
   
   ``` java
   import androidx.core.view.WindowCompat;
   import androidx.core.view.WindowInsetsControllerCompat;
   
   ...
   
   final Window window = cordova.getActivity().getWindow();
   final View decorView = window.getDecorView();
   
   WindowInsetsControllerCompat windowInsetsControllerCompat = 
WindowCompat.getInsetsController(window, decorView);
   
   if(lightNavigationBar)
       windowInsetsControllerCompat.setAppearanceLightNavigationBars(true);
   else
       windowInsetsControllerCompat.setAppearanceLightNavigationBars(false);
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to