Skip to content

Commit a69b261

Browse files
committed
Make reset to default negative
1 parent 887e907 commit a69b261

File tree

2 files changed

+3
-1
lines changed
  • android/app/src

2 files changed

+3
-1
lines changed

android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/dialog/MtuDialogTest.kt

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ class MtuDialogTest {
125125
val mockedClickHandler: () -> Unit = mockk(relaxed = true)
126126
setContentWithTheme {
127127
testMtuDialog(
128+
mtuInitial = VALID_DUMMY_MTU_VALUE,
128129
onResetMtu = mockedClickHandler,
129130
)
130131
}

android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/MtuDialog.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import com.ramcosta.composedestinations.navigation.DestinationsNavigator
1818
import com.ramcosta.composedestinations.navigation.EmptyDestinationsNavigator
1919
import com.ramcosta.composedestinations.spec.DestinationStyle
2020
import net.mullvad.mullvadvpn.R
21+
import net.mullvad.mullvadvpn.compose.button.NegativeButton
2122
import net.mullvad.mullvadvpn.compose.button.PrimaryButton
2223
import net.mullvad.mullvadvpn.compose.textfield.MtuTextField
2324
import net.mullvad.mullvadvpn.compose.util.LaunchedEffectCollect
@@ -120,7 +121,7 @@ fun MtuDialog(
120121
)
121122

122123
if (mtuInitial != null) {
123-
PrimaryButton(
124+
NegativeButton(
124125
modifier = Modifier.fillMaxWidth(),
125126
text = stringResource(R.string.reset_to_default_button),
126127
onClick = onResetMtu

0 commit comments

Comments
 (0)