File tree 2 files changed +8
-1
lines changed
app/src/main/java/com/infomaniak/mail/ui/login
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,9 @@ class IntroFragment : Fragment() {
113
113
}
114
114
}
115
115
116
+ /* *
117
+ * animate is necessary because when the activity is started we want to avoid animating the color change the first time
118
+ */
116
119
private fun setUi (themeColor : ThemeColor , position : Int? , animate : Boolean = true) = with (binding) {
117
120
updateEachPageUi(themeColor, animate)
118
121
if (position == 0 ) updateFirstPageUi(themeColor, animate)
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ package com.infomaniak.mail.ui.login
20
20
import android.content.Context
21
21
import android.content.Intent
22
22
import android.content.res.ColorStateList
23
+ import android.os.Build
23
24
import android.os.Bundle
24
25
import android.view.View
25
26
import androidx.activity.result.contract.ActivityResultContracts.StartActivityForResult
@@ -97,7 +98,10 @@ class LoginActivity : AppCompatActivity() {
97
98
signInButton.isInvisible = ! showConnectButton
98
99
}
99
100
})
100
- removeOverScroll()
101
+
102
+ if (Build .VERSION .SDK_INT < Build .VERSION_CODES .S ) {
103
+ removeOverScroll()
104
+ }
101
105
}
102
106
103
107
dotsIndicator.attachTo(introViewpager)
You can’t perform that action at this time.
0 commit comments