Loading src/com/android/launcher3/Launcher.java +8 −1 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import static com.android.launcher3.dragndrop.DragLayer.ALPHA_INDEX_LAUNCHER_LOA import static com.android.launcher3.logging.LoggerUtils.newContainerTarget; import static com.android.launcher3.logging.LoggerUtils.newTarget; import static com.android.launcher3.states.RotationHelper.REQUEST_NONE; import static com.android.launcher3.testing.TestProtocol.CRASH_ADD_CUSTOM_SHORTCUT; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; Loading Loading @@ -112,6 +113,7 @@ import com.android.launcher3.popup.PopupContainerWithArrow; import com.android.launcher3.popup.PopupDataProvider; import com.android.launcher3.qsb.QsbContainerView; import com.android.launcher3.states.RotationHelper; import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.touch.ItemClickHandler; import com.android.launcher3.uioverrides.UiFactory; import com.android.launcher3.uioverrides.plugins.PluginManagerWrapper; Loading Loading @@ -1207,8 +1209,13 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns, */ private void completeAddShortcut(Intent data, int container, int screenId, int cellX, int cellY, PendingRequestArgs args) { if (args.getRequestCode() != REQUEST_CREATE_SHORTCUT if (data == null || args.getRequestCode() != REQUEST_CREATE_SHORTCUT || args.getPendingIntent().getComponent() == null) { if (data == null && TestProtocol.sDebugTracing) { Log.d(CRASH_ADD_CUSTOM_SHORTCUT, "Failed to add custom shortcut: Intent is null, args = " + args); } return; } Loading src/com/android/launcher3/testing/TestProtocol.java +1 −0 Original line number Diff line number Diff line Loading @@ -86,4 +86,5 @@ public final class TestProtocol { public static final String APP_NOT_DISABLED = "b/139891609"; public static final String NO_CONTEXT_MENU = "b/141770616"; public static final String LAUNCHER_DIDNT_INITIALIZE = "b/142514365"; public static final String CRASH_ADD_CUSTOM_SHORTCUT = "b/141568904"; } Loading
src/com/android/launcher3/Launcher.java +8 −1 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import static com.android.launcher3.dragndrop.DragLayer.ALPHA_INDEX_LAUNCHER_LOA import static com.android.launcher3.logging.LoggerUtils.newContainerTarget; import static com.android.launcher3.logging.LoggerUtils.newTarget; import static com.android.launcher3.states.RotationHelper.REQUEST_NONE; import static com.android.launcher3.testing.TestProtocol.CRASH_ADD_CUSTOM_SHORTCUT; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; Loading Loading @@ -112,6 +113,7 @@ import com.android.launcher3.popup.PopupContainerWithArrow; import com.android.launcher3.popup.PopupDataProvider; import com.android.launcher3.qsb.QsbContainerView; import com.android.launcher3.states.RotationHelper; import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.touch.ItemClickHandler; import com.android.launcher3.uioverrides.UiFactory; import com.android.launcher3.uioverrides.plugins.PluginManagerWrapper; Loading Loading @@ -1207,8 +1209,13 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns, */ private void completeAddShortcut(Intent data, int container, int screenId, int cellX, int cellY, PendingRequestArgs args) { if (args.getRequestCode() != REQUEST_CREATE_SHORTCUT if (data == null || args.getRequestCode() != REQUEST_CREATE_SHORTCUT || args.getPendingIntent().getComponent() == null) { if (data == null && TestProtocol.sDebugTracing) { Log.d(CRASH_ADD_CUSTOM_SHORTCUT, "Failed to add custom shortcut: Intent is null, args = " + args); } return; } Loading
src/com/android/launcher3/testing/TestProtocol.java +1 −0 Original line number Diff line number Diff line Loading @@ -86,4 +86,5 @@ public final class TestProtocol { public static final String APP_NOT_DISABLED = "b/139891609"; public static final String NO_CONTEXT_MENU = "b/141770616"; public static final String LAUNCHER_DIDNT_INITIALIZE = "b/142514365"; public static final String CRASH_ADD_CUSTOM_SHORTCUT = "b/141568904"; }