diff --git a/core/java/com/android/internal/app/ResolverActivity.java b/core/java/com/android/internal/app/ResolverActivity.java
index fadc159..c87f399 100644
--- a/core/java/com/android/internal/app/ResolverActivity.java
+++ b/core/java/com/android/internal/app/ResolverActivity.java
@@ -100,6 +100,7 @@
import java.util.List;
import java.util.Objects;
import java.util.Set;
+import android.content.pm.IPackageManager;
/**
@@ -378,6 +379,11 @@
// turn this off when running under voice interaction, since it results in
// a more complicated UI that the current voice interaction flow is not able
// to handle. We also turn it off when the work tab is shown to simplify the UX.
+ if(mResolvingHome){
+ setDefaultLauncher();
+ finish();
+ return;
+ }
boolean filterLastUsed = mSupportsAlwaysUseOption && !isVoiceInteraction()
&& !shouldShowTabs();
mMultiProfilePagerAdapter = createMultiProfilePagerAdapter(initialIntents, rList, filterLastUsed);
@@ -2144,4 +2150,84 @@
}
protected void maybeLogProfileChange() {}
设置客户app为默认launcher
最新推荐文章于 2024-07-20 15:44:09 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)