}
}
}
+
+ public static AppInfoEntity getDialer(Context context){
+
+ for (AppInfoEntity aie : getAppList(context) ) {
+ if (aie.getAppTitleResId() ==R.string.app_dialer){
+ return aie;
+ }
+ }
+ return null;
+ }
/**
* 拨号的顺序不能变 在低电量模式下会查找这个列表,然后查找索引为1的拨号,
* 如果要修改 请到 {@link LowPowerModeFragment} 中一并修改
}
private ILowPowerCallPhoneListener callListener = () -> {
- int value=1; //l02 通讯录index
- if(SystemUtils.isH88()){
- value = 4; //h88 通讯录index
- }
- AppInfoEntity entity = L02AppInfo.getAppList(mContext).get(value);
+ AppInfoEntity entity = L02AppInfo.getDialer(mContext);
if (entity != null) {
try {
Intent intent = new Intent(Intent.ACTION_MAIN);