mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
inlining single use extension function
This commit is contained in:
parent
4dc8d23826
commit
0979d56a36
@ -21,7 +21,6 @@ import android.os.Parcelable
|
|||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.annotation.AttrRes
|
|
||||||
import androidx.core.view.isVisible
|
import androidx.core.view.isVisible
|
||||||
import com.airbnb.mvrx.args
|
import com.airbnb.mvrx.args
|
||||||
import im.vector.app.R
|
import im.vector.app.R
|
||||||
@ -65,17 +64,14 @@ class FtueAuthWaitForEmailFragment @Inject constructor(
|
|||||||
false -> R.drawable.bg_color_background
|
false -> R.drawable.bg_color_background
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
views.emailVerificationTitle.text = R.string.ftue_auth_email_verification_title.colorTerminatingFullStop(R.attr.colorSecondary)
|
views.emailVerificationTitle.text = getString(R.string.ftue_auth_email_verification_title)
|
||||||
|
.colorTerminatingFullStop(ThemeUtils.getColor(requireContext(), R.attr.colorSecondary))
|
||||||
views.emailVerificationSubtitle.text = getString(R.string.ftue_auth_email_verification_subtitle, params.email)
|
views.emailVerificationSubtitle.text = getString(R.string.ftue_auth_email_verification_subtitle, params.email)
|
||||||
views.emailVerificationResendEmail.debouncedClicks {
|
views.emailVerificationResendEmail.debouncedClicks {
|
||||||
viewModel.handle(OnboardingAction.PostRegisterAction(RegisterAction.SendAgainThreePid))
|
viewModel.handle(OnboardingAction.PostRegisterAction(RegisterAction.SendAgainThreePid))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun Int.colorTerminatingFullStop(@AttrRes color: Int): CharSequence {
|
|
||||||
return getString(this).colorTerminatingFullStop(ThemeUtils.getColor(requireContext(), color))
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
showLoadingIfReturningToScreen()
|
showLoadingIfReturningToScreen()
|
||||||
|
Loading…
Reference in New Issue
Block a user