From c3ec85e8587a2e8a2511eaab0fe9f82dd50f742b Mon Sep 17 00:00:00 2001 From: zher52 Date: Thu, 7 May 2020 20:28:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=99=9A=E6=8B=9F=E6=8C=89?= =?UTF-8?q?=E9=94=AE=E9=A2=9C=E8=89=B2=E4=B8=BA=E9=BB=91=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/android/SplashScreen.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/android/SplashScreen.java b/src/android/SplashScreen.java index 82022f6..cbee233 100644 --- a/src/android/SplashScreen.java +++ b/src/android/SplashScreen.java @@ -221,11 +221,7 @@ public class SplashScreen extends CordovaPlugin { cordova.getActivity().runOnUiThread(new Runnable() { public void run() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - int color = Color.parseColor("#f8f8f9"); - float[] hsv = new float[3]; - Color.colorToHSV(color, hsv); - hsv[2] = 0.5f; - cordova.getActivity().getWindow().setNavigationBarColor(Color.HSVToColor(hsv)); + cordova.getActivity().getWindow().setNavigationBarColor(Color.parseColor("#000000")); } if (splashDialog != null && splashImageView != null && splashDialog.isShowing()) {//check for non-null splashImageView, see https://issues.apache.org/jira/browse/CB-12277 final int fadeSplashScreenDuration = getFadeDuration();