// Path: customtabs/src/android/support/customtabs/CustomTabsIntent.java
// public static final String EXTRA_NAVIGATION_BAR_COLOR =
//         "androidx.browser.customtabs.extra.NAVIGATION_BAR_COLOR";
// 
// Path: customtabs/src/android/support/customtabs/CustomTabsIntent.java
// public static final String EXTRA_SECONDARY_TOOLBAR_COLOR =
//         "android.support.customtabs.extra.SECONDARY_TOOLBAR_COLOR";
// 
// Path: customtabs/src/android/support/customtabs/CustomTabsIntent.java
// public static final String EXTRA_TOOLBAR_COLOR =
//         "android.support.customtabs.extra.TOOLBAR_COLOR";


import static android.support.customtabs.CustomTabsIntent.EXTRA_NAVIGATION_BAR_COLOR;
import static android.support.customtabs.CustomTabsIntent.EXTRA_SECONDARY_TOOLBAR_COLOR;
import static android.support.customtabs.CustomTabsIntent.EXTRA_TOOLBAR_COLOR;
import android.os.Bundle;
import android.support.annotation.ColorInt;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
     * For backward compatibility and ease of use, the names of keys and the structure of the Bundle
     * are the same as that of Intent extras prior to introducing the themes.
     */
    @NonNull
    Bundle toBundle() {
        Bundle bundle = new Bundle();
        if (toolbarColor != null) {
            bundle.putInt(EXTRA_TOOLBAR_COLOR, toolbarColor);
        }
        if (secondaryToolbarColor != null) {
            bundle.putInt(EXTRA_SECONDARY_TOOLBAR_COLOR, secondaryToolbarColor);
        }
        if (navigationBarColor != null) {
            bundle.putInt(EXTRA_NAVIGATION_BAR_COLOR, navigationBarColor);
        }
        return bundle;
    }

    /**
     * Unpacks parameters from a {@link Bundle}. Sets all parameters to null if provided bundle is
     * null.
     */
    @NonNull
    static CustomTabColorSchemeParams fromBundle(@Nullable Bundle bundle) {
        if (bundle == null) {
            bundle = new Bundle(0);
        }
        // Using bundle.get() instead of bundle.getInt() to default to null without calling
        // bundle.containsKey().
        return new CustomTabColorSchemeParams(
// Path: customtabs/src/android/support/customtabs/CustomTabsIntent.java
// public static final String EXTRA_NAVIGATION_BAR_COLOR =
//         "androidx.browser.customtabs.extra.NAVIGATION_BAR_COLOR";
// 
// Path: customtabs/src/android/support/customtabs/CustomTabsIntent.java
// public static final String EXTRA_SECONDARY_TOOLBAR_COLOR =
//         "android.support.customtabs.extra.SECONDARY_TOOLBAR_COLOR";
// 
// Path: customtabs/src/android/support/customtabs/CustomTabsIntent.java
// public static final String EXTRA_TOOLBAR_COLOR =
//         "android.support.customtabs.extra.TOOLBAR_COLOR";


// Path: customtabs/src/android/support/customtabs/CustomTabColorSchemeParams.java
import static android.support.customtabs.CustomTabsIntent.EXTRA_NAVIGATION_BAR_COLOR;
import static android.support.customtabs.CustomTabsIntent.EXTRA_SECONDARY_TOOLBAR_COLOR;
import static android.support.customtabs.CustomTabsIntent.EXTRA_TOOLBAR_COLOR;
import android.os.Bundle;
import android.support.annotation.ColorInt;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

     * For backward compatibility and ease of use, the names of keys and the structure of the Bundle
     * are the same as that of Intent extras prior to introducing the themes.
     */
    @NonNull
    Bundle toBundle() {
        Bundle bundle = new Bundle();
        if (toolbarColor != null) {
            bundle.putInt(EXTRA_TOOLBAR_COLOR, toolbarColor);
        }
        if (secondaryToolbarColor != null) {
            bundle.putInt(EXTRA_SECONDARY_TOOLBAR_COLOR, secondaryToolbarColor);
        }
        if (navigationBarColor != null) {
            bundle.putInt(EXTRA_NAVIGATION_BAR_COLOR, navigationBarColor);
        }
        return bundle;
    }

    /**
     * Unpacks parameters from a {@link Bundle}. Sets all parameters to null if provided bundle is
     * null.
     */
    @NonNull
    static CustomTabColorSchemeParams fromBundle(@Nullable Bundle bundle) {
        if (bundle == null) {
            bundle = new Bundle(0);
        }
        // Using bundle.get() instead of bundle.getInt() to default to null without calling
        // bundle.containsKey().
        return new CustomTabColorSchemeParams(
                (Integer) bundle.get(EXTRA_TOOLBAR_COLOR),