diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2021-02-10 20:26:19 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2021-02-11 17:51:24 +0000 |
| commit | 22f628d568b51d8680c46bb903305772fddab600 (patch) | |
| tree | b6bf0b8bab34b0172088a98374e09b4563cc8b41 /android/src/main | |
| parent | 519ea9ab41ecd9806b3eaa2e7be4bde301a0fe79 (diff) | |
| download | mullvadvpn-22f628d568b51d8680c46bb903305772fddab600.tar.xz mullvadvpn-22f628d568b51d8680c46bb903305772fddab600.zip | |
Use `JvmOverloads` annotation in `MtuCell`
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) |
