This commit is contained in:
wangcongtao
2020-04-01 19:06:55 +08:00
parent e89629a3d3
commit b32663da91
11 changed files with 47 additions and 45 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -18,13 +18,14 @@ open abstract class MogoAuthorizeManagerImpl : IMogoAuthorizeInvoke {
private val baseController: IMogoAuthorizeController by lazy { IMogoAuthorizeController() }
override fun needAuthorize(tag: String): Boolean {
return if (isDeviceOfD()) {
Logger.d(TAG, "needAuthorize update agreement in background")
baseController.updateAgreementVersion(tag.toAuthorizeType())
needAuthorization(tag.toAuthorizeType())
} else {
false
}
// return if (isDeviceOfD()) {
// Logger.d(TAG, "needAuthorize update agreement in background")
// baseController.updateAgreementVersion(tag.toAuthorizeType())
// needAuthorization(tag.toAuthorizeType())
// } else {
// false
// }
return false
}
override fun invokeAuthorizeContent(tag: String) {