webkit/integration-tests/testapp/src/main/java/com/example/androidx/webkit/RequestedWithHeaderActivity.java
/**
     * Handler for selecting a new header mode through the radio group.
     * @param unused Triggering radio group
     * @param checkedId ID of checked radio button
     */
Handler for selecting a new header mode through the radio group.
@param unused Triggering radio group
@param checkedId ID of checked radio button
Handler for selecting a new header mode through the radio group . @param unused Triggering radio group @param checkedId ID of checked radio button
public void onRadioGroupChanged(@NonNull RadioGroup unused, int checkedId) {
        switch (checkedId) {
            case R.id.requested_with_header_no_header_mode:
                refreshView(WebSettingsCompat.REQUESTED_WITH_HEADER_MODE_NO_HEADER);
                break;
            case R.id.requested_with_header_app_package_name_mode:
                refreshView(WebSettingsCompat.REQUESTED_WITH_HEADER_MODE_APP_PACKAGE_NAME);
                break;
        }
    }
public void onRadioGroupChanged ( @ NonNull RadioGroup unused , int checkedId ) { switch ( checkedId ) { case R . id . requested_with_header_no_header_mode : refreshView ( WebSettingsCompat . REQUESTED_WITH_HEADER_MODE_NO_HEADER ) ; break ; case R . id . requested_with_header_app_package_name_mode : refreshView ( WebSettingsCompat . REQUESTED_WITH_HEADER_MODE_APP_PACKAGE_NAME ) ; break ; } }
Handler for selecting a new header mode through the radio group.
Handler for selecting a new header mode through the radio group .