util: Fix build of LinkNode.java.

If you compile with JDK 1.7 you get the following error:

mNext has private access in LinkedNode
return T node.mNext == mHead ? null : node.mNext;

Change-Id: Ic1e60f76461da3e75b4ca8402622251e63569beb
Gallery : Filter picasa specific options

Remove menu options that don't serve a purpose due to their dependency
on picasa support being built in.
Removed "Settings" item from menu. (GallerySettings are empty)

https://jira.cyanogenmod.org/browse/CYAN-1329

Change-Id: Ie75b839ec9b30a5a934477e92523803239a238e3
Gallery2: Use correct editor ID for sharpness filter

Change-Id: Ia8d9424fa9e36d58fee69465c4fe3ddd7ad9e750
Gallery2 - add wmv, mpgts, mkv, asf mimetypes

 - adds extra mimetypes so they can be used for playback from Music app

Change-Id: I19a986e4c4e36b668f2436ced3441696fa6052e5
CRs-Fixed: 438167
(cherry picked from commit 2bbc6f5274fca08e769db5fecaccc51c61cac43f)
(cherry picked from commit b9c182d90b364576b7ce221644c3af05ab731ce1)
(cherry picked from commit 80453df71503f345309fe71ad4dfd90a444bfb0c)
(cherry picked from commit 63e936188eef3528b0538fd0efb702084d6d91a5)
Gallery2: Fix crash for unsupported format on mute operation. -Mpeg4 Writer does not support formats other thanmp4/h264/h263. -Need to check in app for unsupported format before starting  mute operation. -Fix is to add condition in app to check for unsupported format  and display toast message.  CRs-Fixed: 514347

Change-Id: Ib2ce48d2b8ebaef80936bc7a446e1c97e3a10c31
(cherry picked from commit 91620395d7a744abccf89a6f774a569bcd24ccad)
(cherry picked from commit 7f4a86b898969c1942f85657937f2def7ed8bbd4)
(cherry picked from commit c74d095615f50655159d49732e47a063f6ed83dd)
Gallery2 - add wmv, mpgts, mkv, asf,avi & divx mimetypes  - adds extra mimetypes so they can be used for streaming.

Change-Id: Iec3c5c55b2268e93807d5c09a4335f00eda99f97
(cherry picked from commit ab5ef79d09c45028580faeb5a774e074c0e572b2)
(cherry picked from commit 8900fb2fc70a9bb95b0da372089f545a9d41e9a7)
(cherry picked from commit 0bf060d565264298912ee9170b602ab266657455)
If the decoding fails, change the inSampleSize to 1.

Issue: Decoding an image whose inSampleSize is greater
than image width/height returns a invalid bitmap width,
height and config value
Fix: If decoding fails for an image whose inSampleSize
is greater than image width/height; decode the imagewith
inSampleSize=1

CRs-Fixed: 527315

(cherrypicked from: I578e362563f3c648b0a2427cf824198af31d2915)

Change-Id: I1fda51cc0489dc3821f76f8e2f122db7ca4f0b30
(cherry picked from commit 9dcaeca9c7d7c9b0ba9549beb90a418b74440d8b)
(cherry picked from commit 0a3f4414b215482971eb46046385cd2d674e22a2)