|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区
您需要 登录 才可以下载或查看,没有账号?立即注册
×
\kitkat-mstar-master\packages\apps\Launcher3\src\com\android\launcher3\Launcher.java
参照如下修改:
@Override
protected void onResume() {
// MStar Android Patch Begin
if (PowerOn) {
Log.i(TAG, "<<<<<<----------PowerOn == true ---------->>>>>");
PowerOn = false;
Intent intent = new Intent(MIntent.ACTION_START_TV_PLAYER);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.putExtra("isPowerOn", true);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
| Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
final PackageManager packageManager = getApplicationContext().getPackageManager();
List<ResolveInfo> resolveInfo = packageManager.queryIntentActivities(intent,
PackageManager.MATCH_DEFAULT_ONLY);
/*
if (resolveInfo.size() > 0) {
this.startActivityForResult(intent, REQUEST_START_TV_PLAYER);
} else {
Log.i(TAG, "No Tv Package, Skip starting tv player.");
}
*/
}
// MStar Android Patch End |
|