zoukankan      html  css  js  c++  java
  • 解决:铃声改变,来短信,短信设置中默认铃声的名称没有同步更新

    短信界面没有关闭的情况下,在设置中进行操作,短信设置界面中不会进行刷新。因此在当MessagingPreferenceActivity处于活动(onResume)的时候重新初始化,添加代码如下:


        protected void onResume() {
            super.onResume();
            loadPrefs();

            // Since the enabled notifications pref can be changed outside of this activity,
            // we have to reload it whenever we resume.
            setEnabledNotificationsPref();
            // Initialize the sms signature
            updateSignatureStatus();
            registerListeners();
            boolean airplaneModeOn = isAirplaneModeOn();
            // Caused by the ICC card state maybe changed outside of this activity,
            // we need to update the state of the SMSC preference.
            updateSMSCPref(ALL_SUB, airplaneModeOn);
        }
  • 相关阅读:
    CentOS7修改计算机名!
    kafka原理和实践
    sip协议详解
    MP4视频测试URL地址,亲测有效
    pkill精确匹配进程名称
    gdb break 断点设置
    ZR#996
    CF1217C
    CF1217B
    CF1217A
  • 原文地址:https://www.cnblogs.com/bill-technology/p/4130884.html
Copyright © 2011-2022 走看看