diff options
Diffstat (limited to 'android/src/main')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/MtuCell.kt | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/MtuCell.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/MtuCell.kt index 94ddc2838e..5c2e97bf20 100644 --- a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/MtuCell.kt +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/MtuCell.kt @@ -44,28 +44,19 @@ class MtuCell : Cell { } } - constructor(context: Context) : super(context, TextView(context)) {} - - constructor(context: Context, attributes: AttributeSet) : - super(context, attributes, TextView(context)) {} - - constructor(context: Context, attributes: AttributeSet, defaultStyleAttribute: Int) : - super(context, attributes, defaultStyleAttribute, TextView(context)) {} - + @JvmOverloads constructor( context: Context, - attributes: AttributeSet, - defaultStyleAttribute: Int, - defaultStyleResource: Int + attributes: AttributeSet? = null, + defaultStyleAttribute: Int = 0, + defaultStyleResource: Int = 0 ) : super( context, attributes, defaultStyleAttribute, defaultStyleResource, TextView(context) - ) {} - - init { + ) { cell.apply { setEnabled(false) setFocusable(false) |
