diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-08-28 12:52:53 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-09-01 09:53:48 +0000 |
| commit | 0686e984c70ae6a6d92f9dcbb90828197e74f4e7 (patch) | |
| tree | ad13764f6bb87ebd67c419207eea3174a85f6efb /android/src | |
| parent | fc48d2496e66a464c91c7d041792423a9d780562 (diff) | |
| download | mullvadvpn-0686e984c70ae6a6d92f9dcbb90828197e74f4e7.tar.xz mullvadvpn-0686e984c70ae6a6d92f9dcbb90828197e74f4e7.zip | |
Explain the usage of duplicate drawables
Diffstat (limited to 'android/src')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/ui/AccountInputContainer.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/AccountInputContainer.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/AccountInputContainer.kt index 70a5719eea..4ef365e876 100644 --- a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/AccountInputContainer.kt +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/AccountInputContainer.kt @@ -15,6 +15,11 @@ class AccountInputContainer : RelativeLayout { ERROR } + // The horizontal and vertical drawables are identical, but they must be separate objects + // because the view that uses them changes the bounds of the drawable. If they are shared + // between the horizontal and vertical views either the drawable becomes a vertical line or a + // horizontal line, and as a consequence either the horizontal or the vertical borders don't + // show correctly, respectively. private class StateDrawables( val corner: Drawable, val horizontalBorder: Drawable, |
