mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Android: Always set navigation bar colour
This commit is contained in:
parent
5298225ee7
commit
02e826dddb
2 changed files with 837 additions and 826 deletions
|
|
@ -45,6 +45,7 @@ import android.app.Activity;
|
||||||
import android.app.Application;
|
import android.app.Application;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.Canvas;
|
import android.graphics.Canvas;
|
||||||
|
import android.graphics.Color;
|
||||||
import android.graphics.ColorMatrix;
|
import android.graphics.ColorMatrix;
|
||||||
import android.graphics.ColorMatrixColorFilter;
|
import android.graphics.ColorMatrixColorFilter;
|
||||||
import android.graphics.Paint;
|
import android.graphics.Paint;
|
||||||
|
|
@ -780,6 +781,13 @@ public final class ComponentPeerView extends ViewGroup
|
||||||
|
|
||||||
public void setSystemUiVisibilityCompat (Window window, boolean visible, boolean isLight)
|
public void setSystemUiVisibilityCompat (Window window, boolean visible, boolean isLight)
|
||||||
{
|
{
|
||||||
|
if (window != null)
|
||||||
|
{
|
||||||
|
// Although this is deprecated in Android 35+, it still seems to be necessary
|
||||||
|
// to adjust the colour of the nav bar icons when in button-mode.
|
||||||
|
window.setNavigationBarColor (isLight ? Color.BLACK : Color.WHITE);
|
||||||
|
}
|
||||||
|
|
||||||
if (30 <= Build.VERSION.SDK_INT)
|
if (30 <= Build.VERSION.SDK_INT)
|
||||||
{
|
{
|
||||||
WindowInsetsController controller = getWindowInsetsController();
|
WindowInsetsController controller = getWindowInsetsController();
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue