Fix crash when opening the change number registration lock screen.

This commit is contained in:
jeffrey-signal
2025-09-15 16:10:12 -04:00
committed by Greyson Parrelli
parent c24993960d
commit 7235a3730c
2 changed files with 7 additions and 4 deletions

View File

@@ -44,7 +44,9 @@ class ChangeNumberRegistrationLockFragment : LoggingFragment(R.layout.fragment_c
private val TAG = Log.tag(RegistrationLockFragment::class.java)
}
private val binding: FragmentRegistrationLockBinding by ViewBinderDelegate(FragmentRegistrationLockBinding::bind)
private val binding: FragmentRegistrationLockBinding by ViewBinderDelegate(bindingFactory = { rootView ->
FragmentRegistrationLockBinding.bind(rootView.findViewById(R.id.registration_lock_content))
})
private val viewModel by activityViewModels<ChangeNumberViewModel>()

View File

@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:viewBindingIgnore="true"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
tools:viewBindingIgnore="true">
<include layout="@layout/dsl_settings_toolbar" />
<include
android:id="@+id/registration_lock_content"
layout="@layout/fragment_registration_lock"
android:layout_width="match_parent"
android:layout_height="0dp"