Merge "Moving various application into related methods to a separate class" into main
This commit is contained in:
commit
e1b7ca566e
22 files changed
+432
-429
No files matched your search
@@ -79,7 +79,7 @@ import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.model.data.WorkspaceItemInfo;
|
||||
import com.android.launcher3.popup.PopupDataProvider;
|
||||
import com.android.launcher3.util.ActivityOptionsWrapper;
|
||||
import com.android.launcher3.util.PackageManagerHelper;
|
||||
import com.android.launcher3.util.ApplicationInfoWrapper;
|
||||
import com.android.launcher3.util.Preconditions;
|
||||
import com.android.launcher3.util.RunnableList;
|
||||
import com.android.launcher3.util.SplitConfigurationOptions;
|
||||
@@ -417,7 +417,7 @@ public interface ActivityContext {
|
||||
View v, Intent intent, @Nullable ItemInfo item) {
|
||||
Preconditions.assertUIThread();
|
||||
Context context = (Context) this;
|
||||
if (isAppBlockedForSafeMode() && !PackageManagerHelper.isSystemApp(context, intent)) {
|
||||
if (isAppBlockedForSafeMode() && !new ApplicationInfoWrapper(context, intent).isSystem()) {
|
||||
Toast.makeText(context, R.string.safemode_shortcut_error, Toast.LENGTH_SHORT).show();
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user