bugfix: allow recent apps dialog to work with menu long-press

With the original patch, using the recent app dialog from a
menu button long-press would cause the dialog to be preloaded
and then dismissed on key-up. Check long-press behavior settings
as well as short-press to prevent the dismissal.

Change-Id: Idf1d27aa725547e0ddc44905e27da6c1b4540fab
Patch Set 1/2: Add an "Automatically Connect" option for WiFi networks

Allows the ability for a user to determine whether to connect to an SSID automatically.
e.g. At work, there are several SSIDs with long, complex keys.
    I don't want to connect to them all of the time, but would like them to be remebered.
The default behaviour is to allow automatic connection, as it is today.

Change-Id: If6fb33d5aff91688aec73317a9e43c9e210f90fc
Merge "bugfix: allow recent apps dialog to work with menu long-press" into cm-10.1
Merge remote-tracking branch 'upstream/cm-10.1' into cm-10.1
Merge remote-tracking branch 'sgt7/cm-10.1' into cm-10.1-sgt7-linaro