Compare commits
2 commits
39b40f9b0d
...
b2abe5ee84
Author | SHA1 | Date | |
---|---|---|---|
b2abe5ee84 | |||
67c9612627 |
3 changed files with 15 additions and 9 deletions
|
@ -19,9 +19,9 @@ class DownloadWizardActivity: BaseEuiccAccessActivity() {
|
||||||
var currentStepFragmentClassName: String?,
|
var currentStepFragmentClassName: String?,
|
||||||
var selectedLogicalSlot: Int,
|
var selectedLogicalSlot: Int,
|
||||||
var smdp: String,
|
var smdp: String,
|
||||||
var matchingId: String,
|
var matchingId: String?,
|
||||||
var confirmationCode: String,
|
var confirmationCode: String?,
|
||||||
var imei: String,
|
var imei: String?,
|
||||||
)
|
)
|
||||||
|
|
||||||
private lateinit var state: DownloadWizardState
|
private lateinit var state: DownloadWizardState
|
||||||
|
@ -53,9 +53,9 @@ class DownloadWizardActivity: BaseEuiccAccessActivity() {
|
||||||
null,
|
null,
|
||||||
intent.getIntExtra("selectedLogicalSlot", 0),
|
intent.getIntExtra("selectedLogicalSlot", 0),
|
||||||
"",
|
"",
|
||||||
"",
|
null,
|
||||||
"",
|
null,
|
||||||
""
|
null
|
||||||
)
|
)
|
||||||
|
|
||||||
progressBar = requireViewById(R.id.progress)
|
progressBar = requireViewById(R.id.progress)
|
||||||
|
|
|
@ -24,9 +24,10 @@ class DownloadWizardDetailsFragment : DownloadWizardActivity.DownloadWizardStepF
|
||||||
|
|
||||||
override fun beforeNext() {
|
override fun beforeNext() {
|
||||||
state.smdp = smdp.editText!!.text.toString().trim()
|
state.smdp = smdp.editText!!.text.toString().trim()
|
||||||
state.matchingId = matchingId.editText!!.text.toString().trim()
|
// Treat empty inputs as null -- this is important for the download step
|
||||||
state.confirmationCode = confirmationCode.editText!!.text.toString().trim()
|
state.matchingId = matchingId.editText!!.text.toString().trim().ifBlank { null }
|
||||||
state.imei = imei.editText!!.text.toString()
|
state.confirmationCode = confirmationCode.editText!!.text.toString().trim().ifBlank { null }
|
||||||
|
state.imei = imei.editText!!.text.toString().ifBlank { null }
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun createNextFragment(): DownloadWizardActivity.DownloadWizardStepFragment =
|
override fun createNextFragment(): DownloadWizardActivity.DownloadWizardStepFragment =
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
android:hint="@string/profile_download_server">
|
android:hint="@string/profile_download_server">
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:maxLines="1"
|
||||||
|
android:inputType="text"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="match_parent" />
|
||||||
|
|
||||||
|
@ -44,6 +46,7 @@
|
||||||
android:hint="@string/profile_download_code">
|
android:hint="@string/profile_download_code">
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:maxLines="1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:inputType="textPassword" />
|
android:inputType="textPassword" />
|
||||||
|
@ -57,6 +60,7 @@
|
||||||
android:hint="@string/profile_download_confirmation_code">
|
android:hint="@string/profile_download_confirmation_code">
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:maxLines="1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:inputType="textPassword" />
|
android:inputType="textPassword" />
|
||||||
|
@ -73,6 +77,7 @@
|
||||||
app:passwordToggleEnabled="true">
|
app:passwordToggleEnabled="true">
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:maxLines="1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:inputType="textPassword" />
|
android:inputType="textPassword" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue