OSDN Git Service

Fix longpress crash.
authorDan Sandler <dsandler@android.com>
Mon, 13 Jan 2014 19:30:14 +0000 (14:30 -0500)
committerDan Sandler <dsandler@android.com>
Tue, 14 Jan 2014 16:12:38 +0000 (11:12 -0500)
commite26d09484575f9b1855e5bc42d4fa05a5342f054
tree3ab2be5c34286bcf11244a5163601509140241e2
parentc83d136ce4a7bde768cbea4d4b263ab6e4eaa9f1
Fix longpress crash.

The AllApps button doesn't usually accept longpresses, but
you can trick it into trying by holding one finger on it and
another on another icon in the hotseat. This patch defends
against that and bails out if the longpressed item has the
all apps rank (position in hotseat).

Bug: 11740833
Change-Id: I99785ccbc9e6dc6be2a9e56289b3cc0275fbb65c
src/com/android/launcher3/Launcher.java