Another telecom helper fix
This commit is contained in:
parent
38e230ff3f
commit
e1ef15b9a2
2 changed files with 7 additions and 1 deletions
|
@ -104,6 +104,7 @@ class CallSettingsFragment : GenericSettingFragment<SettingsCallFragmentBinding>
|
|||
corePreferences.useTelecomManager = true
|
||||
Log.w("[Telecom Helper] Doesn't exists yet, creating it")
|
||||
TelecomHelper.create(requireContext())
|
||||
updateTelecomManagerAccount()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -182,7 +183,7 @@ class CallSettingsFragment : GenericSettingFragment<SettingsCallFragmentBinding>
|
|||
}
|
||||
}
|
||||
|
||||
corePreferences.useTelecomManager = true
|
||||
TelecomHelper.create(requireContext())
|
||||
updateTelecomManagerAccount()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,7 +94,12 @@ class TelecomHelper private constructor(context: Context) {
|
|||
break
|
||||
}
|
||||
}
|
||||
if (account == null) {
|
||||
Log.w("[Telecom Helper] Existing phone account not found")
|
||||
}
|
||||
return account
|
||||
} else {
|
||||
Log.e("[Telecom Helper] Can't search for existing phone account, missing permission(s)")
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue