private static boolean hasCategory(ResolveInfo info, String category) {
        return info != null && info.filter != null && info.filter.hasCategory(category);
    }
Makes a best-effort guess about which navigation bar color will be used when the Trusted Web
Activity is launched. Returns null if not possible to predict.
customtabs/src/android/support/customtabs/trusted/splashscreens/SystemBarColorPredictor.java