diff --git a/src/com/android/launcher3/views/ActivityContext.java b/src/com/android/launcher3/views/ActivityContext.java index f7837f50b0..b6f622359e 100644 --- a/src/com/android/launcher3/views/ActivityContext.java +++ b/src/com/android/launcher3/views/ActivityContext.java @@ -313,7 +313,7 @@ public interface ActivityContext { */ default boolean startActivitySafely( View v, Intent intent, @Nullable ItemInfo item) { - + Preconditions.assertUIThread(); Context context = (Context) this; if (isAppBlockedForSafeMode() && !PackageManagerHelper.isSystemApp(context, intent)) { Toast.makeText(context, R.string.safemode_shortcut_error, Toast.LENGTH_SHORT).show();