Commit 7da48338 by zhangchengbo

fix:解决通讯录展示名称颠倒问题(姓与名)

parent 66ddf21e
...@@ -63,7 +63,7 @@ class MainActivity : SimpleActivity() { ...@@ -63,7 +63,7 @@ class MainActivity : SimpleActivity() {
setContentView(binding.root) setContentView(binding.root)
setupOptionsMenu() setupOptionsMenu()
refreshMenuItems() refreshMenuItems()
initConfig()
// contentResolver.registerContentObserver(Uri.parse("content://sms"), true, SmsSendObserver(this, Handler())) // contentResolver.registerContentObserver(Uri.parse("content://sms"), true, SmsSendObserver(this, Handler()))
updateMaterialActivityViews( updateMaterialActivityViews(
...@@ -94,6 +94,13 @@ class MainActivity : SimpleActivity() { ...@@ -94,6 +94,13 @@ class MainActivity : SimpleActivity() {
} }
} }
/**
* 初始化配置项
*/
private fun initConfig() {
config.startNameWithSurname = true//姓氏在前
}
private fun isNotificationAccessEnabled(): Boolean { private fun isNotificationAccessEnabled(): Boolean {
val enabledListeners: String = Settings.Secure.getString( val enabledListeners: String = Settings.Secure.getString(
contentResolver, contentResolver,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment