File tree Expand file tree Collapse file tree
app/src/main/java/dev/bluehouse/enablevolte Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ fun checkShizukuPermission(code: Int): Boolean {
1919}
2020
2121val SubscriptionInfo .uniqueName: String
22- get() = " ${this .cardId } - ${this .displayName} "
22+ get() = " ${this .subscriptionId } - ${this .displayName} "
2323
2424fun getLatestAppVersion (handler : (String ) -> Unit ) {
2525 " https://api.github.com/repos/kyujin-cho/pixel-volte-patch/releases"
Original file line number Diff line number Diff line change @@ -108,10 +108,14 @@ fun Home(navController: NavController) {
108108 BooleanPropertyView (label = stringResource(R .string.volte_supported_by_device), toggled = deviceIMSEnabled)
109109
110110 for (idx in subscriptions.indices) {
111+ var isRegistered = false
112+ if (isIMSRegistered.isNotEmpty()) {
113+ isRegistered = isIMSRegistered[idx]
114+ }
111115 HeaderText (text = stringResource(R .string.ims_status_for, " ${subscriptions[idx].uniqueName} " ))
112116 BooleanPropertyView (
113117 label = stringResource(R .string.ims_status),
114- toggled = isIMSRegistered[idx] ,
118+ toggled = isRegistered ,
115119 trueLabel = stringResource(R .string.registered),
116120 falseLabel = stringResource(R .string.unregistered),
117121 )
You can’t perform that action at this time.
0 commit comments