mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 13:27:46 +00:00
AutofillFragment: Repair semantics for newest AppCompat changes
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
4207bfe2de
commit
c6363dc86d
@ -124,7 +124,7 @@ class AutofillFragment : DialogFragment() {
|
|||||||
val positiveButton = ad.getButton(Dialog.BUTTON_POSITIVE)
|
val positiveButton = ad.getButton(Dialog.BUTTON_POSITIVE)
|
||||||
positiveButton.setOnClickListener {
|
positiveButton.setOnClickListener {
|
||||||
val callingActivity = requireActivity() as AutofillPreferenceActivity
|
val callingActivity = requireActivity() as AutofillPreferenceActivity
|
||||||
val dialog = dialog
|
val dialog = requireDialog()
|
||||||
val args = requireNotNull(arguments)
|
val args = requireNotNull(arguments)
|
||||||
|
|
||||||
val prefs: SharedPreferences = if (!isWeb) {
|
val prefs: SharedPreferences = if (!isWeb) {
|
||||||
@ -199,8 +199,8 @@ class AutofillFragment : DialogFragment() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent) {
|
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
||||||
if (resultCode == AppCompatActivity.RESULT_OK) {
|
if (resultCode == AppCompatActivity.RESULT_OK && data != null) {
|
||||||
adapter!!.add(data.getStringExtra("path"))
|
adapter!!.add(data.getStringExtra("path"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user