opt
This commit is contained in:
@@ -43,9 +43,9 @@ public class AppFilterImpl implements AppFilter {
|
||||
if ( !AppEnumHelper.isCustomizedApp( packageInfo.packageName ) ) {
|
||||
return true;
|
||||
}
|
||||
if ( noLaunchIntent( packageInfo ) ) {
|
||||
return true;
|
||||
}
|
||||
// if ( noLaunchIntent( packageInfo ) ) {
|
||||
// return true;
|
||||
// }
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ public enum AppEnum {
|
||||
AUX( "AUX", "com.nwd.auxin", R.drawable.module_apps_ic_aux ),
|
||||
|
||||
//FM
|
||||
FM( "FM", "com.nwd.radio", R.drawable.module_apps_ic_fm ),
|
||||
FM( "FM收音机", "com.nwd.radio", R.drawable.module_apps_ic_fm ),
|
||||
|
||||
// 新鲜事
|
||||
FreshThings( "新鲜事", "com.zhidao.fresh.things", R.drawable.module_apps_ic_fresh_things ),
|
||||
@@ -78,6 +78,9 @@ public enum AppEnum {
|
||||
|
||||
// 车辆信息
|
||||
CanBus( "车辆信息", "com.zd.canbus", R.drawable.module_apps_ic_canbus ),
|
||||
|
||||
// 蓝牙电话
|
||||
BT_PHONE( "蓝牙电话", "com.nwd.android.phone", R.drawable.module_apps_ic_bt_phone ),
|
||||
;
|
||||
|
||||
private String mName;
|
||||
|
||||
@@ -122,7 +122,7 @@ public class AppsModel {
|
||||
|
||||
private String getApplicationName( PackageManager packageManager, PackageInfo packageInfo ) {
|
||||
String name = packageManager.getApplicationLabel( packageInfo.applicationInfo ).toString();
|
||||
if ( name.startsWith( "com." ) || name.split( "." ).length > 3 ) {
|
||||
if ( AppEnumHelper.isCustomizedApp( packageInfo.packageName ) ) {
|
||||
return AppEnumHelper.getTargetName( packageInfo.packageName );
|
||||
}
|
||||
return name;
|
||||
|
||||
Reference in New Issue
Block a user