Properly handle null URIs.

Change-Id: Ib81044686f40284bacf6ee645c671679f62be843

(cherry picked from commit 014445aeb8d61f934b7dc6373a7d92d8a97bc169)
fix for screenshot animation glitch in portrait

edits by Stefano Semeraro aka Suxsem.

Change-Id: I7a03a24c5b1bfdfe616f940b2bd7be42091f45a6

(cherry picked from commit 0da7289b2a17bc71010d0bef2b392ef1f0879431)
Make ImageView drawable update more efficient in some cases.

When updating the view's drawable via setImageResource or setImageURI,
make sure to skip the layout pass if the old and new drawable have equal
sizes. This follows what is already done for setDrawable().

Change-Id: If73d225e38d0a2f7c616c4aeb33f67bdaed390f1

(cherry picked from commit 468d9eedef4f9b8cb8826deb1b2bd95641955b01)
extend PreferenceActivity for title text on a single pane mode

startPreferencePanel() ignores titleText on a single pane mode
this commits extends PreferenceActivity by adding EXTRA_SHOW_FRAGMENT_TITLE_TEXT to intent

ported from CM9, http://review.cyanogenmod.org/#/c/14919
AOSP part verified, but not merged

Change-Id: Ie0702dc20b17504148f4da9cc83a6d7865d95423

(cherry picked from commit 24fa5dbae4b88793c6cd4425f3713ed953ff94da)