---
title: "then"
description: "Combines this override with the [other] override into a single override, by applying this
override as the outer override first, then the [other] override as an inner override, and then
the content."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
infix fun DeviceConfigurationOverride.then(
    other: DeviceConfigurationOverride
): DeviceConfigurationOverride
```


Combines this override with the `other` override into a single override, by applying this
override as the outer override first, then the `other` override as an inner override, and then
the content.

#### Parameters

| | |
| --- | --- |
| other | the `DeviceConfigurationOverride` to apply after this one |


#### Returns

| | |
| --- | --- |
|  | a new `DeviceConfigurationOverride` that applies both this `DeviceConfigurationOverride` and then the `other`. |




## Code Examples
### DeviceConfigurationOverrideThenSample
```kotlin
@Composable
fun DeviceConfigurationOverrideThenSample() {
    DeviceConfigurationOverride(
        DeviceConfigurationOverride.FontScale(1.5f) then
            DeviceConfigurationOverride.FontWeightAdjustment(200)
    ) {
        Text(text = "text with increased scale and weight")
    }
}
```

