Fix scale popping by disabling zoom on thumbnails

In order to prevent the situation where a user scales a low-res image in
the image viewer before the new image has loaded, we disable the scaling
and panning of low-res images.

This is desirable because when the high-res image loads, it will "pop"
back to it's default scale and pan settings.

In the longer term I would like to fix this problem by making high-res
images load in at the current scale and pan settings. This is a much
quicker fix, however.

Bug: 7338705

Change-Id: I0c8f3dc5a7b29943db9c03e9c82cc3cee5ce2734
Remove unused imports and variables

Removes a couple of unused imports and an unused variable

Change-Id: Ie2b0109230a3393adde69a0744af5d0f262b5b8e
Merge "Fix scale popping by disabling zoom on thumbnails"
Make PhotoViewer use the support library

Now it uses the support library for fragments and loaders,
so it's compatible back to Froyo.

Change-Id: I887dd57760606e22a8376cdfdf3ecf7c99295a61
Remove PhotoViewFragment's dependency on PhotoViewActivity

Now, there is a interface called PhotoViewCallbacks
that PhotoViewFragment depends upon.  This way other
users can use PhotoViewFragment without using
PhotoViewActivity.

Change-Id: Ibbda93d2e0226bcc993ef98be1de7cf3a323f41a
Make some members protected

This allows users to extend PhotoViewFragment and
PhotoPagerAdapter.

Change-Id: I7945b33116601fe23f84723f14c76634c2219f52
Make some static members protected

Change-Id: I9b2a1e177c369246bc3070a8ebdf5aebb70cfc2a
call initLoader in a runnable

b/7544801
Apparently, calling initLoader() from inside onLoadFinished()
is no good when using the support library.  Now we post a
runnable to the main handler to call initLoader()

Change-Id: Idedfad5f3be0aecc55ca0f3d593c2df96482da77
Need one more initLoader in a runnable.

b/7544801

Change-Id: Ieffca5389f0b560b041f96a8daf363302f53f7ad
Support data URIs in photoviewer.

GoogleSearch needs to support data URLs, since GWS often provides
thumbnails in that way.

Change-Id: Ic981725ef052eb61f780aa3672b3cfbde721696b
Merge 'goog/jb-ub-now-carmello' into frameworks/opt/photoviewer

Change-Id: I4a338a8cf6650db88dfa1914dd4c0fa63c841d89
Merge tag 'android-4.2.2_r1' of https://android.googlesource.com/platform/frameworks/opt/photoviewer into 1.1

Android 4.2.2 release 1