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
This commit is contained in:
committed by
Android (Google) Code Review
commit
fd2471b990
@@ -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