code: @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
      public static void setNavigationBarColor(Window window, int navigationBarColor) {
          window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
          window.setNavigationBarColor(navigationBarColor);
      }
docs: Set the navigation bar color.