Compare commits

...

2 commits

Author SHA1 Message Date
826c120ca5 EuiccInfoActivity: support back button
All checks were successful
/ build-debug (push) Successful in 4m33s
2024-10-27 15:58:33 -04:00
5cefbc24f5 OpenEuiccService: fixup 2024-10-27 15:57:46 -04:00
2 changed files with 11 additions and 1 deletions

View file

@ -3,6 +3,7 @@ package im.angry.openeuicc.ui
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.os.Bundle import android.os.Bundle
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.MenuItem
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import android.widget.TextView import android.widget.TextView
@ -55,6 +56,15 @@ class EuiccInfoActivity : BaseEuiccAccessActivity() {
setupRootViewInsets(infoList) setupRootViewInsets(infoList)
} }
override fun onOptionsItemSelected(item: MenuItem): Boolean = when (item.itemId) {
android.R.id.home -> {
finish()
true
}
else -> super.onOptionsItemSelected(item)
}
override fun onInit() { override fun onInit() {
refresh() refresh()
} }

View file

@ -207,7 +207,7 @@ class OpenEuiccService : EuiccService(), OpenEuiccContextMarker {
return@withEuiccChannelManager GetEuiccProfileInfoListResult( return@withEuiccChannelManager GetEuiccProfileInfoListResult(
RESULT_OK, RESULT_OK,
profiles.toTypedArray(), profiles.toTypedArray(),
channel.removable channel.port.card.isRemovable
) )
} }