mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Merge "Make sure we start new activity only in UI thread." into tm-qpr-dev am: fd2471b990 am: 52f3078c7f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21484427 Change-Id: Idd5019c6f5f95219ac13cc70b2e4842dbac70392 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user